diff --git a/supervision/dataset/formats/pascal_voc.py b/supervision/dataset/formats/pascal_voc.py index 6155b0fc..b76c3c1b 100644 --- a/supervision/dataset/formats/pascal_voc.py +++ b/supervision/dataset/formats/pascal_voc.py @@ -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