Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -108,7 +108,7 @@ def infer(image_in):
|
|
108 |
cv2.circle(img, arrow_tail, 3, (255, 0, 0), cv2.FILLED)
|
109 |
# Calculate length and angle
|
110 |
arrow_length = get_length(arrow_tip, arrow_tail)
|
111 |
-
arrow_angle =
|
112 |
# Draw arrow on the same blank image
|
113 |
draw_arrow(img_result, arrow_tip, arrow_tail, arrow_length, arrow_angle)
|
114 |
|
|
|
108 |
cv2.circle(img, arrow_tail, 3, (255, 0, 0), cv2.FILLED)
|
109 |
# Calculate length and angle
|
110 |
arrow_length = get_length(arrow_tip, arrow_tail)
|
111 |
+
arrow_angle = get_clockwise_angle(arrow_tip, arrow_tail)
|
112 |
# Draw arrow on the same blank image
|
113 |
draw_arrow(img_result, arrow_tip, arrow_tail, arrow_length, arrow_angle)
|
114 |
|