ageitgey / face_recognition

The world's simplest facial recognition api for Python and the command line
MIT License
53.62k stars 13.51k forks source link

face_recognition not working for local images #1302

Open harphere opened 3 years ago

harphere commented 3 years ago

Description

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

Faces are recognized just fine for images downloaded from Google but not recognized for images taken on the phone Camera app. I'm not sure where the difference lies. For local images, I'm getting either unknown_person or no_persons_found

:) u0_a473 ~ $ face_recognition faceid/known/ storage/dcim/Camera/ WARNING: No faces found in faceid/known/harp.jpg. Ignoring file. WARNING: No faces found in faceid/known/arjan.jpg. Ignoring file. storage/dcim/Camera/ryan.jpg,ryan storage/dcim/Camera/biden.jpg,biden storage/dcim/Camera/harp.jpg,unknown_person storage/dcim/Camera/arjan.jpg,no_persons_found storage/dcim/Camera/PXL_20210411_143846774.jpg,no_persons_found storage/dcim/Camera/PXL_20210411_143848213.jpg,no_persons_found storage/dcim/Camera/PXL_20210411_143906504.jpg,no_persons_found storage/dcim/Camera/PXL_20210411_143845024.MP.jpg,no_persons_found

ageitgey commented 3 years ago

See https://medium.com/@ageitgey/the-dumb-reason-your-fancy-computer-vision-app-isnt-working-exif-orientation-73166c7d39da