Pratyush101 commited on
Commit
533774d
·
verified ·
1 Parent(s): 51e8f4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -114,14 +114,14 @@ def video_frame_callback(frame: av.VideoFrame) -> av.VideoFrame:
114
  cv2.rectangle(image, (310, 180), (450, 220), (0, 0, 0), -1)
115
  cv2.putText(image,f"Bend Backward",(320,200),cv2.FONT_HERSHEY_SIMPLEX,1,(80,120,255),1,cv2.LINE_AA)
116
 
117
- # # # stage 2
118
 
119
- # # # Incorrect movements
120
 
121
- # # 3. Knees not low enough
122
- # if 110 < angleKneeL < 130:
123
- # cv2.rectangle(image, (220, 40), (450, 80), (0, 0, 0), -1)
124
- # cv2.putText(image,f"Lower Your Hips",(230,60),cv2.FONT_HERSHEY_SIMPLEX,1,(255,255,255),1,cv2.LINE_AA)
125
 
126
 
127
  # # 3. Knees not low enough and not completed the squat
 
114
  cv2.rectangle(image, (310, 180), (450, 220), (0, 0, 0), -1)
115
  cv2.putText(image,f"Bend Backward",(320,200),cv2.FONT_HERSHEY_SIMPLEX,1,(80,120,255),1,cv2.LINE_AA)
116
 
117
+ # # stage 2
118
 
119
+ # # Incorrect movements
120
 
121
+ # 3. Knees not low enough
122
+ if 110 < angleKneeL < 130:
123
+ cv2.rectangle(image, (220, 40), (450, 80), (0, 0, 0), -1)
124
+ cv2.putText(image,f"Lower Your Hips",(230,60),cv2.FONT_HERSHEY_SIMPLEX,1,(255,255,255),1,cv2.LINE_AA)
125
 
126
 
127
  # # 3. Knees not low enough and not completed the squat