Pratyush101 commited on
Commit
3427eee
·
verified ·
1 Parent(s): b2ed51e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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