Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ def get_length(p1, p2):
|
|
43 |
return line_length
|
44 |
|
45 |
def get_clockwise_angle(tip, tail):
|
46 |
-
return np.arctan2(tail[1] - tip[1], tail[0] - tip[0])
|
47 |
|
48 |
def get_max_distance_point(cnt, tip):
|
49 |
max_distance = 0
|
|
|
43 |
return line_length
|
44 |
|
45 |
def get_clockwise_angle(tip, tail):
|
46 |
+
return (np.degrees(np.arctan2(tail[1] - tip[1], tail[0] - tip[0]))*-1)
|
47 |
|
48 |
def get_max_distance_point(cnt, tip):
|
49 |
max_distance = 0
|