Spaces:
Sleeping
Sleeping
roychao19477
commited on
Commit
·
bc3a003
1
Parent(s):
5a10a66
Update module
Browse files
app.py
CHANGED
@@ -163,7 +163,7 @@ def extract_faces(video_file):
|
|
163 |
shift_down = int(0.1 * (y2 - y1))
|
164 |
y1 = int(min(max(0, y1 + shift_down), h))
|
165 |
y2 = int(min(max(0, y2 + shift_down), h))
|
166 |
-
|
167 |
if face_crop.size != 0:
|
168 |
resized = cv2.resize(face_crop, (224, 224))
|
169 |
frames.append(resized)
|
|
|
163 |
shift_down = int(0.1 * (y2 - y1))
|
164 |
y1 = int(min(max(0, y1 + shift_down), h))
|
165 |
y2 = int(min(max(0, y2 + shift_down), h))
|
166 |
+
face_crop = frame[y1:y2, x1:x2]
|
167 |
if face_crop.size != 0:
|
168 |
resized = cv2.resize(face_crop, (224, 224))
|
169 |
frames.append(resized)
|