Skip to content

Conversation

Skwarson96
Copy link

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

@trsvchn
Copy link
Owner

trsvchn commented Jun 28, 2023

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

What are possible use cases for this feature?

@Skwarson96
Copy link
Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants