coco-viewer icon indicating copy to clipboard operation
coco-viewer copied to clipboard

Support rotation

Open Skwarson96 opened this issue 2 years ago • 2 comments
trafficstars

HI! I added the functionality of drawing rotated frames to test it you need to add appropriate keys to the annotated json file. "attributes": { "occluded": false, "rotation": 60 }

Example: { "id": 1, "image_id": 1, "category_id": 1, "segmentation": [], "area": 1721.5952, "bbox": [ 282.86, 459.49, 89.48, 19.24 ], "iscrowd": 0, "attributes": { "occluded": false, "rotation": 318.30000076003773 }

I added requirements.txt file too, I don't know if it will come in handy

Skwarson96 avatar Jun 22 '23 20:06 Skwarson96

@Skwarson96 Thanks a lot for the PR! I'll try review it asap!

What are possible use cases for this feature?

trsvchn avatar Jun 28 '23 11:06 trsvchn

@trsvchn thanks for answer! Feature can be use to show rotated frames saved in coco files. I prepared a simple example (frame categories are random, it's just to visualize the rotation) img_1 Here I zipped two json files in coco one with rotated annotations and second with normal bboxes, I have also attached an image data.zip

Skwarson96 avatar Jun 28 '23 19:06 Skwarson96