Update app.py
Browse files
app.py
CHANGED
@@ -109,10 +109,10 @@ def video_frame_callback(frame: av.VideoFrame) -> av.VideoFrame:
|
|
109 |
cv2.rectangle(image, (310, 180), (450, 220), (0, 0, 0), -1)
|
110 |
cv2.putText(image,f"Bend Forward",(320,200),cv2.FONT_HERSHEY_SIMPLEX,1,(150,120,255),1,cv2.LINE_AA)
|
111 |
|
112 |
-
#
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
|
117 |
# # # stage 2
|
118 |
|
|
|
109 |
cv2.rectangle(image, (310, 180), (450, 220), (0, 0, 0), -1)
|
110 |
cv2.putText(image,f"Bend Forward",(320,200),cv2.FONT_HERSHEY_SIMPLEX,1,(150,120,255),1,cv2.LINE_AA)
|
111 |
|
112 |
+
# 2. Lean Backward Warning
|
113 |
+
if angleHipL > 45:
|
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 |
|