cvat-ai / cvat

Annotate better with CVAT, the industry-leading data engine for machine learning. Used and trusted by teams at any scale, for data of any scale.
https://cvat.ai
MIT License
12.28k stars 2.95k forks source link

Labels rotated with images in portrait mode? #733

Closed dzanaga closed 4 years ago

dzanaga commented 4 years ago

I am using CVAT to annotate a collection of images, some in landscape and some in portrait mode. The first image of the collection is in landscape mode (if this makes a difference). On each image I draw a 'rectangular' polygon. I exported the labels with CVAT xml format.

The labels for the images in landscape mode are good, while those for the images in portrait are rotated 90 degrees left. e.g. when I am burning the polygons to raster masks for an image in portrait mode, I have to rotate the original image 90 degrees left to have a correct mask.

Am I doing something wrong?

bsekachev commented 4 years ago

@dzanaga

Hi, When you create a task, are all your images in landscape mode? Do you use "rotate" functionality in CVAT client?

dzanaga commented 4 years ago

Hi @bsekachev thanks for answering back,

when I create a task I load in a folder from the share mount point and the folder contains a mixture of landscape and portrait images. I didn't use any rotate functionality. Also the images might be of different resolution. Is this a problem for CVAT? I was expecting it to treat every image individually, even though now I realize that some tools like the interpolate one might not like that.

What would be the expected behavior here? CVAT handling correctly a task with incosistent (res, orientation) frames or raising an error on task creation?

nmanovic commented 4 years ago

@dzanaga ,

CVAT should handle the case correctly. Just try. I will close the issue for now. If you see any problems with annotations such images just submit a bug request. If you have more questions please ask them on gitter.im/opencv-cvat

panban-ux commented 3 years ago

Im having this issue on exif loaded photos. With labelImg and some another browser annotating tool BB boxes are where my objects are. Now when i import a task on CVAT with the above data (photos and annotations) there is a shift of phase between the images and annotations in CVAT by 90 degrees. While the image is counterclockwise annotations are on 0 and cannot syncronise them. Im wondering what the darknet gets for training

bsekachev commented 3 years ago

@panban-ux

Please take a loot at this reply