Gradiant / pyodi

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

Image width and height swapped due to not respecting EXIF information #182

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 are swapped in the end result.

Consider applying:

ImageOps.exif_transpose(image)

Perhaps as an option? I could submit a PR.

jorgenusan commented 1 year ago

Hello!

It may be fine as an option. You can open a PR whenever you want to implement it :)

tracek commented 1 year ago

Hey - and done: https://github.com/Gradiant/pyodi/pull/185

BTW, nice work!