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.
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