fffiloni commited on
Commit
2f5e44a
1 Parent(s): 2fe6395

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = get_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
 
 
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