Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -105,7 +105,7 @@ with app_tab:
|
|
105 |
(x1, y1, x2, y2) = map(int, webcam_faces[0].bbox)
|
106 |
cv2.rectangle(cv2_webcam, (x1, y1), (x2, y2), (0, 255, 0), 2)
|
107 |
|
108 |
-
if matched_score >= 0.
|
109 |
matched_name = os.path.basename(image_paths[match_idx]).split('.')[0]
|
110 |
cv2.putText(cv2_webcam, matched_name, (x1, y1 - 10),
|
111 |
cv2.FONT_HERSHEY_SIMPLEX, 1, (0, 255, 0), 2)
|
|
|
105 |
(x1, y1, x2, y2) = map(int, webcam_faces[0].bbox)
|
106 |
cv2.rectangle(cv2_webcam, (x1, y1), (x2, y2), (0, 255, 0), 2)
|
107 |
|
108 |
+
if matched_score >= 0.5:
|
109 |
matched_name = os.path.basename(image_paths[match_idx]).split('.')[0]
|
110 |
cv2.putText(cv2_webcam, matched_name, (x1, y1 - 10),
|
111 |
cv2.FONT_HERSHEY_SIMPLEX, 1, (0, 255, 0), 2)
|