Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def calculateAngle(landmark1, landmark2, landmark3):
|
|
| 37 |
|
| 38 |
# Calculate the angle between the three points
|
| 39 |
angle = math.degrees(math.atan2(y3 - y2, x3 - x2) - math.atan2(y1 - y2, x1 - x2))
|
| 40 |
-
|
| 41 |
|
| 42 |
|
| 43 |
# Check if the angle is less than zero.
|
|
|
|
| 37 |
|
| 38 |
# Calculate the angle between the three points
|
| 39 |
angle = math.degrees(math.atan2(y3 - y2, x3 - x2) - math.atan2(y1 - y2, x1 - x2))
|
| 40 |
+
# angle = abs(angle) # Convert the angle to an absolute value.
|
| 41 |
|
| 42 |
|
| 43 |
# Check if the angle is less than zero.
|