Ekyc_Using_Computer_Vision / compare_faces.py
usmanabbasi's picture
Uploaded Projec Files
6233336 verified
raw
history blame
215 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 "Match" if result["verified"] else "No Match"