You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.
While COCO only supports segmentations and bboxes, lines and rectangles are also exported. In the upcoming COCO import, these could be imported, too, but there is an abiguous case. In the import lines and rectangles can be identified by their first coordinate not matching the last coordinate. Rectangles have 4 coordinates and lines are all the rest. But this way a line with 4 coordinates would be incorrectly identified as a rectangle. So in the COCO export we should just convert rectangles to polygons to solve this issue for the import.
Basically we only have to add a special case for rectangles here and append the first coordinate to their points array.
The text was updated successfully, but these errors were encountered:
While COCO only supports segmentations and bboxes, lines and rectangles are also exported. In the upcoming COCO import, these could be imported, too, but there is an abiguous case. In the import lines and rectangles can be identified by their first coordinate not matching the last coordinate. Rectangles have 4 coordinates and lines are all the rest. But this way a line with 4 coordinates would be incorrectly identified as a rectangle. So in the COCO export we should just convert rectangles to polygons to solve this issue for the import.
Basically we only have to add a special case for rectangles here and append the first coordinate to their points array.
The text was updated successfully, but these errors were encountered: