increment polygon
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user