We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6222e1f + e01eff9 commit b8f1bb9Copy full SHA for b8f1bb9
fastlabel/converters.py
@@ -812,6 +812,11 @@ def to_pixel_coordinates(tasks: list) -> list:
812
for points in region:
813
new_points = get_pixel_coordinates(points)
814
new_region.append(new_points)
815
+ if not (
816
+ new_points[0] == new_points[-2]
817
+ and new_points[1] == new_points[-1]
818
+ ):
819
+ new_points.extend([new_points[0], new_points[1]])
820
new_regions.append(new_region)
821
annotation["points"] = new_regions
822
elif annotation["type"] == AnnotationType.polygon.value:
0 commit comments