Skip to content

Instantly share code, notes, and snippets.

@BindiChen
Created February 20, 2020 21:13
Show Gist options
  • Save BindiChen/5592fe2c28280b1975e70e2447b606d1 to your computer and use it in GitHub Desktop.
Save BindiChen/5592fe2c28280b1975e70e2447b606d1 to your computer and use it in GitHub Desktop.
Test if this unknown face encoding matches any of the people we know
# Test if this unknown face encoding matches any of the people we know
results = face_recognition.compare_faces(
known_face_encodings,
unknown_face_encoding,
tolerance=0.6
)
# results is a 0-based list
for num in range(0, n):
if results[num]:
print(f"Found Person {num + 1} in the photo!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment