Closed rgaiacs closed 1 year ago
Could you please check this PR: https://github.com/heartexlabs/label-studio-converter/pull/134 ?
@makseq Thanks for the reply and the pull request. I tested the pull request and it didn't work.
The above figure illustrates the user case. User creates the red box and rotate it into the blue box. When exporting to COCO and YOLO, we want to export the green box.
@rgaiacs thank you for your great investigation and finalizing my PR!
I created a single rotated bounding box annotation (image from https://commons.wikimedia.org/wiki/File:Radiography_of_a_pregnant_cat.jpg) with Label Studio:
and exported it COCO. When I try to visualise the bounding box, it differ from the one in Label Studio:
JSON
COCO
Solution
Change https://github.com/heartexlabs/label-studio-converter/blob/04124cd941feb633eac2fba01e0cbc89f6f5a367/label_studio_converter/converter.py#L526-L541 to take rotation into consideration.