Skip to content

Commit

Permalink
Allow utilization of circular shape type for predicting polygons
Browse files Browse the repository at this point in the history
  • Loading branch information
healthonrails committed Jan 11, 2024
1 parent 813f18b commit 3960be7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion annolid/segmentation/SAM/edge_sam_bg.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def process_frame(self, frame_number):
continue
if len(points) < 4:
orig_points = random_sample_near_center(
Point(points), 4, 3)
Point(points[0]), 4, 3)
points = calculate_polygon_center(orig_points)

polygon = Polygon(orig_points)
Expand Down

0 comments on commit 3960be7

Please sign in to comment.