Update app.py
Browse files
app.py
CHANGED
@@ -138,11 +138,13 @@ def video_frame_callback(frame: av.VideoFrame) -> av.VideoFrame:
|
|
138 |
# incorrect +=1
|
139 |
# stage='up'
|
140 |
|
141 |
-
#
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
|
|
|
|
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 |
|