ageitgey / ageitgey/face_recognition
Fails on large images
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:
- Python version:
- Operating System:
Description
Just testing your sample from the readme with my own pictures
Describe what you were trying to get done.
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
Replace pictures from smartphone and noticed if the images are too big you get the classic array index out of range error when calling face_recognition.face_encodings("my picture")[0]
Ive solved it by reducing my images to the size/dimensions close to your test images, but Im curious what does the extra array ix [0] in face_recognition.face_encodings(obama_image)[0] do :)?
Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.
Reproducing the bug is simple jeg take a smartphone image directly and replace "Obama" with that.
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
Start with the README example using face_recognition.face_encodings and compare it with the reported smartphone-image reproduction. Record the Python, face_recognition, and operating-system versions, include the complete traceback, and determine whether the failure is specific to image size or to the result accessed with [0]. Done means the behavior is reproducible and its expected handling is documented or covered by a test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-vision
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100