Convert ALTO-XML/PAGE-XML polygon coordinates segmentation to YOLOv8 polygons labels (not OBB) #16249
johnlockejrr
started this conversation in
Show and tell
Replies: 1 comment
-
Your approach to converting polygon coordinates to YOLO format looks correct. The output appears lengthy because it includes normalized coordinates for each point in the polygon. Ensure your image dimensions are accurate for normalization. If you need further assistance, please check the Ultralytics documentation for additional guidance. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to convert PAGE-XML polygon points segmentation like this:
208,277 208,297 854,291 1844,307 1849,286 1847,261 1742,255 1707,241 1706,241 1704,241 1702,241 1661,260 1660,260 1658,260 1589,241 1587,241 1586,241 1584,241 1551,253 1390,258 1357,258 1229,258 1226,256 1110,236 1108,236 709,241 618,233 616,233 208,250 208,277
into YOLOv8 polygons labels for training like this one:0 0.5793838862559242 0.03832116788321168 0.5793838862559242 0.06204379562043796 0.9135071090047393 0.06204379562043796 0.9135071090047393 0.03832116788321168 0.5793838862559242 0.03832116788321168
(unrelated).What I did so far:
Output:
Seems much! Am I wrong?
Beta Was this translation helpful? Give feedback.
All reactions