fffiloni commited on
Commit
f43bbe1
1 Parent(s): a105c4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -95,7 +95,7 @@ def infer(image_in):
95
 
96
  for cnt in contours:
97
  peri = cv2.arcLength(cnt, True)
98
- approx = cv2.approxPolyDP(cnt, 0.025 * peri, False)
99
  hull = cv2.convexHull(approx, returnPoints=False)
100
  sides = len(hull)
101
 
 
95
 
96
  for cnt in contours:
97
  peri = cv2.arcLength(cnt, True)
98
+ approx = cv2.approxPolyDP(cnt, 0.025 * peri, True)
99
  hull = cv2.convexHull(approx, returnPoints=False)
100
  sides = len(hull)
101