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

Fix face and object recognition of rotated images #334

Merged
merged 3 commits into from
Sep 1, 2021
Merged

Fix face and object recognition of rotated images #334

merged 3 commits into from
Sep 1, 2021

Conversation

uraid
Copy link
Contributor

@uraid uraid commented Aug 30, 2021

Noticed that most of the selfie images don't have any faces recognized.
Had a hunch it's metadata related.
Took a look and found those have orientation exif tag attached, so are rotated 270 degrees.

Poked around the code and found that thumbnails are rotated correctly, but no pre-processing is made on the face recognition side.
Added the thumbnail rotation correction code to the face recognition model.
Reprocessed those selfie images and validated it fixes the issue.

Just wanted to contribute to this amazing project! :)
Thank you for your hard work!

@uraid uraid changed the title Fix face recognition of rotated images Fix face and object recognition of rotated images Aug 30, 2021
@uraid
Copy link
Contributor Author

uraid commented Aug 30, 2021

Edit: Found it affects also the object recognition, so added a commit to fix it as well.

@damianmoore damianmoore merged commit 1acc0af into photonixapp:master Sep 1, 2021
@damianmoore
Copy link
Collaborator

Thanks so much for this @uraid! This is now merged as of 1acc0af and will be in release v0.21.0 which I'm just preparing.

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

Successfully merging this pull request may close these issues.

None yet

2 participants