Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -138,11 +138,7 @@ def classifyPose(landmarks, output_image, display=False):
|
|
| 138 |
#----------------------------------------------------------------------------------------------------------------
|
| 139 |
|
| 140 |
# Check if one leg is straight
|
| 141 |
-
if
|
| 142 |
-
|
| 143 |
-
# Check if the other leg is bended at the required angle.
|
| 144 |
-
if left_knee_angle > 315 and left_knee_angle < 335 or right_knee_angle > 25 and right_knee_angle < 45:
|
| 145 |
-
|
| 146 |
# Specify the label of the pose that is tree pose.
|
| 147 |
label = 'Tree Pose'
|
| 148 |
|
|
|
|
| 138 |
#----------------------------------------------------------------------------------------------------------------
|
| 139 |
|
| 140 |
# Check if one leg is straight
|
| 141 |
+
if left_leg_angle > 160 and right_leg_angle < 120:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 142 |
# Specify the label of the pose that is tree pose.
|
| 143 |
label = 'Tree Pose'
|
| 144 |
|