fffiloni commited on
Commit
af04d71
1 Parent(s): 59c8dae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -33,7 +33,7 @@ def infer(image_in):
33
  hull = cv2.convexHull(approx, returnPoints=False)
34
  sides = len(hull)
35
 
36
- if 4 > sides > 2 and sides + 2 == len(approx):
37
  arrow_tip = find_tip(approx[:,0,:], hull.squeeze())
38
  if arrow_tip:
39
  cv2.drawContours(img, [cnt], -1, (0, 255, 0), 3)
 
33
  hull = cv2.convexHull(approx, returnPoints=False)
34
  sides = len(hull)
35
 
36
+ if 6 > sides > 3 and sides + 2 == len(approx):
37
  arrow_tip = find_tip(approx[:,0,:], hull.squeeze())
38
  if arrow_tip:
39
  cv2.drawContours(img, [cnt], -1, (0, 255, 0), 3)