Pratyush101 commited on
Commit
9866e5c
·
verified ·
1 Parent(s): 533774d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -138,11 +138,13 @@ def video_frame_callback(frame: av.VideoFrame) -> av.VideoFrame:
138
  # incorrect +=1
139
  # stage='up'
140
 
141
- # # stage 4
142
- # if (80 < angleKneeL < 110) and stage=='mid':
143
- # if (18 < angleHipL < 40): # Valid "down" position
144
- # correct+=1
145
- # stage='up'
 
 
146
 
147
 
148
 
 
138
  # incorrect +=1
139
  # stage='up'
140
 
141
+ # stage 4
142
+ if (80 < angleKneeL < 110) and stage=='mid':
143
+ if (18 < angleHipL < 40): # Valid "down" position
144
+ correct+=1
145
+ stage='up'
146
+ else:
147
+ stage='mid'
148
 
149
 
150