geomat0101 / mediamgr

software for managing media libraries
0 stars 0 forks source link

image rotation and face recognition accuracy #20

Open geomat0101 opened 1 year ago

geomat0101 commented 1 year ago

There was a noticeable difference in face recognition accuracy in some images that I ran down to the fact they were stored natively in landscape mode with an exif 'orientation' value that hints which way is up to image viewers. The recognizer was absolutely terrible on these rotated images until I re-saved them in portrait orientation using gimp, then they worked great.

dlib can probably do the rotation in memory prior to passing it off to the face detector we just need to check the exif data and see if it's something that needs doing