Update app.py
Browse files
app.py
CHANGED
@@ -105,6 +105,9 @@ def video_frame_callback(frame: av.VideoFrame) -> av.VideoFrame:
|
|
105 |
|
106 |
cv2.rectangle(image, (0, 110), (280, 225), (127, 248, 236), -1)
|
107 |
cv2.rectangle(image, (0, 113), (277, 222), (12, 85, 61), -1)
|
|
|
|
|
|
|
108 |
cv2.putText(image, str(int(angleHipL)), rel_point1, cv2.FONT_HERSHEY_SIMPLEX, 1.7, (255, 255, 255), 2, cv2.LINE_AA)
|
109 |
cv2.putText(image, str(int(angleKneeL)), rel_point2, cv2.FONT_HERSHEY_SIMPLEX, 1.7, (255, 255, 255), 2, cv2.LINE_AA)
|
110 |
|
|
|
105 |
|
106 |
cv2.rectangle(image, (0, 110), (280, 225), (127, 248, 236), -1)
|
107 |
cv2.rectangle(image, (0, 113), (277, 222), (12, 85, 61), -1)
|
108 |
+
cv2.putText(image, 'HipL', (10, 140), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 255), 2, cv2.LINE_AA)
|
109 |
+
|
110 |
+
cv2.putText(image, 'KneeL', (180, 140),cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 255), 2, cv2.LINE_AA)
|
111 |
cv2.putText(image, str(int(angleHipL)), rel_point1, cv2.FONT_HERSHEY_SIMPLEX, 1.7, (255, 255, 255), 2, cv2.LINE_AA)
|
112 |
cv2.putText(image, str(int(angleKneeL)), rel_point2, cv2.FONT_HERSHEY_SIMPLEX, 1.7, (255, 255, 255), 2, cv2.LINE_AA)
|
113 |
|