Update app.py
Browse files
app.py
CHANGED
@@ -116,7 +116,7 @@ def video_frame_callback(frame: av.VideoFrame) -> av.VideoFrame:
|
|
116 |
if 18 < angleHipL < 40:
|
117 |
correct += 1
|
118 |
|
119 |
-
if
|
120 |
stage = 'down'
|
121 |
|
122 |
cv2.rectangle(image, (0, 0), (280, 103), (127, 248, 236), -1)
|
|
|
116 |
if 18 < angleHipL < 40:
|
117 |
correct += 1
|
118 |
|
119 |
+
if angleKneeL < 110 and stage == 'up':
|
120 |
stage = 'down'
|
121 |
|
122 |
cv2.rectangle(image, (0, 0), (280, 103), (127, 248, 236), -1)
|