increment polygon

This commit is contained in:
Mayank Agarwal committed 2023-07-25 16:29:27 +05:30
1 parent 204a04a85f
commit 6f7a50f41b
1 file changed
+1
@@ -30,6 +30,7 @@ def object_to_pascal_voc(
ymax.text = str(int(xyxy[3]))
if polygon is not None:
polygon += 1
object_polygon = SubElement(root, "polygon")
for index, point in enumerate(polygon, start=1):
x_coordinate, y_coordinate = point