cocodataset / cocoapi

COCO API - Dataset @ http://cocodataset.org/
Other
6.12k stars 3.76k forks source link

image rotated skimage.io #391

Open JavierClearImageAI opened 4 years ago

JavierClearImageAI commented 4 years ago

Just a suggestion. It's not a problem of yout api at all, but note that in 'pycocoDemo.ipynb' you use "I = io.imread(img)", which doesn't have access to metadata. When some picts taken with a mobile phone where vertical, annotations got rotated 90º sometimes.

Note that since imread does not have access to metadata, such as the TIFF PlanarConfiguration tag, this patch uses a heuristic approach based on the image shape.

I would use another library, which doesn't get this wrong, to avoid people getting crazy when trying the demo.

Thanks for the great job

regards

Shakesbeer333 commented 4 years ago

@JavierClearImageAI I'm having the same issues. Any recommendations to fix this?