Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -99,7 +99,7 @@ def infer(image_in):
|
|
99 |
hull = cv2.convexHull(approx, returnPoints=False)
|
100 |
sides = len(hull)
|
101 |
|
102 |
-
if
|
103 |
arrow_tip = find_tip(approx[:,0,:], hull.squeeze())
|
104 |
|
105 |
|
|
|
99 |
hull = cv2.convexHull(approx, returnPoints=False)
|
100 |
sides = len(hull)
|
101 |
|
102 |
+
if 6 > sides > 3 and sides + 2 == len(approx):
|
103 |
arrow_tip = find_tip(approx[:,0,:], hull.squeeze())
|
104 |
|
105 |
|