Question:
How can I maintain the rotated bounding box orientation when I export my annotated data from Label Studio into COCO or YOLO formats? The bounding boxes are always exported as non-rotated boxes.
Answer:
The YOLO and COCO dataset formats typically only support axis-aligned bounding boxes and do not account for rotation information. As a result, when you export rotated bounding boxes from Label Studio into these formats, they are converted back to axis-aligned boxes without rotation.
To preserve the rotation information, you must use a format that supports it, such as the Label Studio JSON format. If using YOLO, there is YOLO OBB option in the Label Studio export. LS doesn’t support COCO for rotated bboxes.