hassan526 commited on
Commit
d772244
·
verified ·
1 Parent(s): a94357a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -458,7 +458,7 @@ def compare_face(frame1, frame2):
458
  image_mat1 = cv2.imdecode(np.frombuffer(image1.read(), np.uint8), cv2.IMREAD_COLOR)
459
  image_mat2 = cv2.imdecode(np.frombuffer(image2.read(), np.uint8), cv2.IMREAD_COLOR)
460
  start_time = time.time()
461
- result, score, face_bboxes, face_features = fr_header.compare_face(image_mat1, image_mat2, float(threshold))
462
  end_time = time.time()
463
  process_time = (end_time - start_time) * 1000
464
 
 
458
  image_mat1 = cv2.imdecode(np.frombuffer(image1.read(), np.uint8), cv2.IMREAD_COLOR)
459
  image_mat2 = cv2.imdecode(np.frombuffer(image2.read(), np.uint8), cv2.IMREAD_COLOR)
460
  start_time = time.time()
461
+ result, score, face_bboxes, face_features = fr_header.compare_face(image_mat1, image_mat2, MATCH_THRESHOLD)
462
  end_time = time.time()
463
  process_time = (end_time - start_time) * 1000
464