Piarasingh85 commited on
Commit
e6ded88
·
verified ·
1 Parent(s): e686804

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
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 left_knee_angle > 165 and left_knee_angle < 195 or right_knee_angle > 165 and right_knee_angle < 195:
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