HumanSignal / label-studio-converter

Tools for converting Label Studio annotations into common dataset formats
https://labelstud.io/
255 stars 132 forks source link

fix: Bounding boxes with rotation exporter to COCO and YOLO #136

Closed rgaiacs closed 1 year ago

rgaiacs commented 1 year ago

Fixes https://github.com/heartexlabs/label-studio-converter/issues/131

supersedes https://github.com/heartexlabs/label-studio-converter/pull/134

Annotation in Label Studio 1.6.0.rc5 with rotation

annotation

COCO exporter bundle with Label Studio 1.6.0.rc5 ignores the rotation

annotation16

COCO exporter patched with https://github.com/heartexlabs/label-studio-converter/pull/134 after correction is completely wrong

annotation-previous-pr

COCO exporter patched with this PR

annotation-with-pr

codecov-commenter commented 1 year ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@a0595c6). Click here to learn what that means. Patch has no changes to coverable lines.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #136 +/- ## ========================================= Coverage ? 21.87% ========================================= Files ? 16 Lines ? 1458 Branches ? 0 ========================================= Hits ? 319 Misses ? 1139 Partials ? 0 ``` Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=heartexlabs). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=heartexlabs)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

rgaiacs commented 1 year ago

After fixed calculation of y_0

0002-with-boxes