usmanabbasi
commited on
Update compare_faces.py
Browse files- 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 "
|
|
|
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"
|