Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does locating the face first then encoding the face have higher accuracy than just encoding the face? #1579

Open
Ann5t opened this issue Aug 2, 2024 · 0 comments

Comments

@Ann5t
Copy link

Ann5t commented Aug 2, 2024

Since I noticed that there's this attribute number_of_times_to_upsample in the function face_locations, I wonder if locating the face first have a slower outcome but a higher accuracy?

e.g. locating the face first then encoding the face

face_locations = face_recognition.face_locations(image, 
                                                 number_of_times_to_upsample=2, 
                                                 model='hog')
face_encodings_in_image = face_recognition.face_encodings(image, 
                                                          known_face_locations=face_locations,
                                                          num_jitters=1, 
                                                          model='small')

e.g. just encoding the face

face_encodings_in_image = face_recognition.face_encodings(image, 
                                                          known_face_locations=face_locations,
                                                          num_jitters=1, 
                                                          model='small')
@Ann5t Ann5t changed the title Does locating the face first then encoding the face has higher accuracy than just encoding the face? Does locating the face first then encoding the face have higher accuracy than just encoding the face? Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant