Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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)
|