Spaces:
Runtime error
Runtime error
roychao19477
commited on
Commit
·
0d22451
1
Parent(s):
e4eabbd
Update module
Browse files
app.py
CHANGED
|
@@ -157,7 +157,7 @@ def extract_faces(video_file):
|
|
| 157 |
if face_crop.size != 0:
|
| 158 |
resized = cv2.resize(face_crop, (224, 224))
|
| 159 |
frames.append(resized)
|
| 160 |
-
|
| 161 |
|
| 162 |
cap.release()
|
| 163 |
|
|
|
|
| 157 |
if face_crop.size != 0:
|
| 158 |
resized = cv2.resize(face_crop, (224, 224))
|
| 159 |
frames.append(resized)
|
| 160 |
+
break # only one face per frame
|
| 161 |
|
| 162 |
cap.release()
|
| 163 |
|