usmanabbasi commited on
Commit
fc2ad25
·
verified ·
1 Parent(s): 60a5e14

Update compare_faces.py

Browse files
Files changed (1) hide show
  1. compare_faces.py +5 -5
compare_faces.py CHANGED
@@ -1,5 +1,5 @@
1
- from deepface import DeepFace
2
-
3
- def compare_faces(id_card_image_path, face_image_path):
4
- result = DeepFace.verify(id_card_image_path, face_image_path)
5
- return "Match" if result["verified"] else "No Match"
 
1
+ from deepface import DeepFace
2
+
3
+ def compare_faces(id_card_image_path, face_image_path):
4
+ result = DeepFace.verify(id_card_image_path, face_image_path)
5
+ return "Face is Verified" if result["verified"] else "Face is Not Verified"