Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -107,7 +107,7 @@ def infer(image_in):
|
|
107 |
cv2.circle(img, arrow_tip, 3, (0, 0, 255), cv2.FILLED)
|
108 |
arrow_tail = find_tail(approx[:,0,:], arrow_tip)
|
109 |
if arrow_tail :
|
110 |
-
arrows_coordinates.append([arrow_tail, arrow_tip])
|
111 |
cv2.circle(img, arrow_tail, 3, (255, 0, 0), cv2.FILLED)
|
112 |
# Calculate length and angle
|
113 |
arrow_length = get_length(arrow_tip, arrow_tail)
|
|
|
107 |
cv2.circle(img, arrow_tip, 3, (0, 0, 255), cv2.FILLED)
|
108 |
arrow_tail = find_tail(approx[:,0,:], arrow_tip)
|
109 |
if arrow_tail :
|
110 |
+
arrows_coordinates.append([list(arrow_tail), list(arrow_tip)])
|
111 |
cv2.circle(img, arrow_tail, 3, (255, 0, 0), cv2.FILLED)
|
112 |
# Calculate length and angle
|
113 |
arrow_length = get_length(arrow_tip, arrow_tail)
|