pushpinder06 commited on
Commit
6c7f47c
·
verified ·
1 Parent(s): 69959f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.6:
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)