Pratyush101 commited on
Commit
b32d463
·
verified ·
1 Parent(s): a6c914a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -143,7 +143,7 @@ def video_frame_callback(frame: av.VideoFrame) -> av.VideoFrame:
143
  cv2.putText(image, 'HipL', (10, 150),
144
  cv2.FONT_HERSHEY_SIMPLEX, 0.7, (255, 255, 255), 2, cv2.LINE_AA)
145
 
146
- cv2.putText(image, str(int(angleHipL)),
147
  (0, 200), cv2.FONT_HERSHEY_SIMPLEX, 1.7, (255, 255, 255), 2, cv2.LINE_AA)
148
 
149
  # Knee angle
@@ -151,7 +151,7 @@ def video_frame_callback(frame: av.VideoFrame) -> av.VideoFrame:
151
  cv2.putText(image, 'Knee', (180, 150),
152
  cv2.FONT_HERSHEY_SIMPLEX, 0.7, (255, 255, 255), 2, cv2.LINE_AA)
153
 
154
- cv2.putText(image, str(int(angleKneeL)),
155
  (170, 200), cv2.FONT_HERSHEY_SIMPLEX, 1.7, (255, 255, 255), 2, cv2.LINE_AA)
156
  mp_drawing.draw_landmarks(image, results.pose_landmarks, mp_pose.POSE_CONNECTIONS,mp_drawing.DrawingSpec(color=(255, 175, 0), thickness=2, circle_radius=2),mp_drawing.DrawingSpec(color=(0, 255, 200), thickness=2, circle_radius=2))
157
 
 
143
  cv2.putText(image, 'HipL', (10, 150),
144
  cv2.FONT_HERSHEY_SIMPLEX, 0.7, (255, 255, 255), 2, cv2.LINE_AA)
145
 
146
+ cv2.putText(image, str(angleHipL),
147
  (0, 200), cv2.FONT_HERSHEY_SIMPLEX, 1.7, (255, 255, 255), 2, cv2.LINE_AA)
148
 
149
  # Knee angle
 
151
  cv2.putText(image, 'Knee', (180, 150),
152
  cv2.FONT_HERSHEY_SIMPLEX, 0.7, (255, 255, 255), 2, cv2.LINE_AA)
153
 
154
+ cv2.putText(image, str(angleKneeL),
155
  (170, 200), cv2.FONT_HERSHEY_SIMPLEX, 1.7, (255, 255, 255), 2, cv2.LINE_AA)
156
  mp_drawing.draw_landmarks(image, results.pose_landmarks, mp_pose.POSE_CONNECTIONS,mp_drawing.DrawingSpec(color=(255, 175, 0), thickness=2, circle_radius=2),mp_drawing.DrawingSpec(color=(0, 255, 200), thickness=2, circle_radius=2))
157