Skip to content

Commit

Permalink
updated minimum length of polygons
Browse files Browse the repository at this point in the history
  • Loading branch information
savan77 authored Aug 31, 2020
1 parent dce0526 commit 0c10f31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def infer(self, image, threshold):
contour = np.flip(contour, axis=1)
# Approximate the contour and reduce the number of points
contour = approximate_polygon(contour, tolerance=2.5)
if len(contour) < 5:
if len(contour) < 6:
continue
label = self.labels[class_id]

Expand Down

0 comments on commit 0c10f31

Please sign in to comment.