fffiloni commited on
Commit
311431e
·
verified ·
1 Parent(s): 2cd62f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ def infer(image_in):
49
 
50
  for cnt in contours:
51
  peri = cv2.arcLength(cnt, True)
52
- approx = cv2.approxPolyDP(cnt, 0.005 * peri, True)
53
  hull = cv2.convexHull(approx, returnPoints=False)
54
  sides = len(hull)
55
 
 
49
 
50
  for cnt in contours:
51
  peri = cv2.arcLength(cnt, True)
52
+ approx = cv2.approxPolyDP(cnt, 0.0255 * peri, True)
53
  hull = cv2.convexHull(approx, returnPoints=False)
54
  sides = len(hull)
55