Created
February 20, 2020 21:13
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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