Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,6 +77,7 @@ if file_name is not None:
|
|
| 77 |
recognized_names.append(name)
|
| 78 |
|
| 79 |
# Draw rectangle around the face
|
|
|
|
| 80 |
y1, x2, y2, x1 = faceLoc
|
| 81 |
y1, x2, y2, x1 = (y1 * 4), (x2 * 4), (y2 * 4) ,(x1 * 4)
|
| 82 |
image = image.copy()
|
|
|
|
| 77 |
recognized_names.append(name)
|
| 78 |
|
| 79 |
# Draw rectangle around the face
|
| 80 |
+
for faceLoc, name in zip(facesCurFrame, recognized_names):
|
| 81 |
y1, x2, y2, x1 = faceLoc
|
| 82 |
y1, x2, y2, x1 = (y1 * 4), (x2 * 4), (y2 * 4) ,(x1 * 4)
|
| 83 |
image = image.copy()
|