Gradiant / pyodi

Python Object Detection Insights
https://gradiant.github.io/pyodi/
Mozilla Public License 2.0
189 stars 17 forks source link

Add option to use EXIF orientation from image metadata #185

Closed tracek closed 1 year ago

tracek commented 1 year ago

When loading an image for painting annotations, Pillow is used to load the image. Trouble is, the Image.open function does not take EXIF information into the consideration, so the width and height might end up swapped in the result.

The PR adds an option to use EXIF orientation information to transpose the image if necessary.

jorgenusan commented 1 year ago

We have moved ahead of the lint workflow. Can you please correct this? In our contribution guide it says how, the pre-commit itself should update the file to match the style of code we use.

Thank you very much!

tracek commented 1 year ago

Fixed now, thanks! And sorry, I haven't noticed the guidelines before.