szili2011 commited on
Commit
0e47c11
·
verified ·
1 Parent(s): c56710c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,8 +24,8 @@ def analyze_images(img1, img2):
24
  img2.save(temp_file2, format='JPEG')
25
  img2_path = temp_file2.name
26
 
27
- # Face comparison with DeepFace
28
- face_result = DeepFace.verify(img1_path, img2_path, model_name='VGG-Face')
29
  is_same_person = face_result['verified']
30
  similarity_score = face_result['distance']
31
 
 
24
  img2.save(temp_file2, format='JPEG')
25
  img2_path = temp_file2.name
26
 
27
+ # Face comparison with DeepFace, enforce_detection set to False
28
+ face_result = DeepFace.verify(img1_path, img2_path, model_name='VGG-Face', enforce_detection=False)
29
  is_same_person = face_result['verified']
30
  similarity_score = face_result['distance']
31