You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importface_biometric_recognitionpicture_of_me=face_biometric_recognition.load_image_file("me.jpg")
my_face_encoding=face_biometric_recognition.face_encodings(picture_of_me)[0]
# my_face_encoding now contains a universal 'encoding' of my facial features# that can be compared to any other picture of a face!unknown_picture=face_biometric_recognition.load_image_file("unknown.jpg")
unknown_face_encoding=face_biometric_recognition.face_encodings(unknown_picture)[0]
# Now we can see the two face encodings# are of the same person with `compare_faces`!results=face_biometric_recognition.compare_faces(
[my_face_encoding], unknown_face_encoding
)
ifresults[0] isTrue:
print("It's a picture of me!")
else:
print("It's not a picture of me!")
however it should be if results[0] == True: for the ease of beginners. Describe what you were trying to get done:
NA Tell us what happened, what went wrong, and what you expected to happen:
IMPORTANT: If your issue is related to a specific picture, include it so others can reproduce the issue.
What I Did
NA
Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.
The text was updated successfully, but these errors were encountered:
NA
Description
In https://pypi.org/project/face-biometric-recognition/
the last code example is as follows:
however it should be
if results[0] == True:
for the ease of beginners.Describe what you were trying to get done:
NA
Tell us what happened, what went wrong, and what you expected to happen:
IMPORTANT: If your issue is related to a specific picture, include it so others can reproduce the issue.
What I Did
NA
The text was updated successfully, but these errors were encountered: