Spaces:
Runtime error
Runtime error
sarwansingh
commited on
Commit
•
5b98964
1
Parent(s):
f88ac95
Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ if file_name is not None:
|
|
58 |
match_found = True # Set the flag to True
|
59 |
|
60 |
y1, x2, y2, x1 = faceLoc
|
61 |
-
y1, x2, y2, x1 = (y1 * 4), (x2 * 4), (y2 * 4)
|
62 |
cv2.rectangle(image, (x1, y1), (x2, y2), (0, 255, 0), 2)
|
63 |
cv2.rectangle(image, (x1, y2 - 35), (x2, y2), (0, 255, 0), cv2.FILLED)
|
64 |
cv2.putText(image, name, (x1 + 6, y2 - 6), cv2.FONT_HERSHEY_COMPLEX, 1, (255, 255, 255), 2)
|
|
|
58 |
match_found = True # Set the flag to True
|
59 |
|
60 |
y1, x2, y2, x1 = faceLoc
|
61 |
+
y1, x2, y2, x1 = (y1 * 4), (x2 * 4), (y2 * 4) ,(x1 * 4)
|
62 |
cv2.rectangle(image, (x1, y1), (x2, y2), (0, 255, 0), 2)
|
63 |
cv2.rectangle(image, (x1, y2 - 35), (x2, y2), (0, 255, 0), cv2.FILLED)
|
64 |
cv2.putText(image, name, (x1 + 6, y2 - 6), cv2.FONT_HERSHEY_COMPLEX, 1, (255, 255, 255), 2)
|