ageitgey / ageitgey/face_recognition
compare_faces compares only the first face in array
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 56.8k
- Forks
- 13.7k
- PR merge metrics
- No merged PRs in 30d
Description
- face_recognition version: 1.2.2
- Python version: Both 2.7.5 and 3.6.5
- Operating System: CentOS 7
Hello,
This code below doesn't work for me for multiple known faces. It only compares first face in the array.
face_encodings = numpy.array(list(my_face_encodings.values()))
...
...
results = face_recognition.compare_faces(face_encodings, unknown_face_encoding)
unless i do this. use a for loop. code below works but why not the one above?
face_encodings = numpy.array(list(my_face_encodings.values()))
...
...
for kface in face_encodings:
results = face_recognition.compare_faces([kface], unknown_face_encoding)
what might be wrong that compare_faces does not accept my array?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No repository file or test is named. Start at the compare_faces entry point and reproduce the report using the supplied array and loop examples, then inspect how multiple known face encodings are handled. Done means the behavior for the array input is understood and the reported case has appropriate test coverage or a documented explanation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, python
- Domain
- computer-vision, machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100