Moibe commited on
Commit
b48a9dc
1 Parent(s): 3d20903

No face at source fix

Browse files
Files changed (2) hide show
  1. funciones.py +5 -5
  2. orange.png +0 -0
funciones.py CHANGED
@@ -99,12 +99,10 @@ def mass(input1, input2):
99
  if "No face in source path detected" in output:
100
  #Hacer algo si se encuentra el texto
101
  print("No se detectó ninguna cara en la ruta de origen.")
102
- time.sleep(8)
103
-
104
  else:
105
  print("Si se detecto un rostro...")
106
- time.sleep(8)
107
-
108
 
109
 
110
  print("Éste es el momento en el que se creo result, revisar...")
@@ -121,7 +119,7 @@ def mass(input1, input2):
121
 
122
  if modo == "video":
123
  #Para video
124
- path = pathlib.Path("result.mp4")
125
  path_abs = os.path.abspath(path)
126
  print("Éste es el path para video:", path)
127
  print("Y su ruta absoluta es: ", path_abs)
@@ -130,5 +128,7 @@ def mass(input1, input2):
130
  #Para imagen
131
  path = pathlib.Path(result_path)
132
  print("Éste es el path para imagen:", path)
 
133
  return path
 
134
  print("Listo! Gracias!")
 
99
  if "No face in source path detected" in output:
100
  #Hacer algo si se encuentra el texto
101
  print("No se detectó ninguna cara en la ruta de origen.")
102
+
 
103
  else:
104
  print("Si se detecto un rostro...")
105
+
 
106
 
107
 
108
  print("Éste es el momento en el que se creo result, revisar...")
 
119
 
120
  if modo == "video":
121
  #Para video
122
+ path = pathlib.Path(result_path)
123
  path_abs = os.path.abspath(path)
124
  print("Éste es el path para video:", path)
125
  print("Y su ruta absoluta es: ", path_abs)
 
128
  #Para imagen
129
  path = pathlib.Path(result_path)
130
  print("Éste es el path para imagen:", path)
131
+ print("Y su ruta absoluta es: ", path_abs)
132
  return path
133
+
134
  print("Listo! Gracias!")
orange.png ADDED