Ekyc_Using_Computer_Vision / compare_faces.py
usmanabbasi's picture
Update compare_faces.py
fc2ad25 verified
raw
history blame contribute delete
233 Bytes
from deepface import DeepFace
def compare_faces(id_card_image_path, face_image_path):
result = DeepFace.verify(id_card_image_path, face_image_path)
return "Face is Verified" if result["verified"] else "Face is Not Verified"