face_recognition
face_recognition copied to clipboard
rotate image according to exif #917
After recognizing faces on an image sometimes the images rotate sideways because of EXIF. It can be easily solved by rotating the image according to EXIF after loading.
PIL already has a method PIL.ImageOps.exif_transpose(image)
to do this. Which will apply EXIF transform if required.
What I did: Rotate the image according to EXIF after loading it before doing anything.
Thx Rafi! I was on the way to solve this differently, but using the build-in method seems the correct way to go.