Update app.py
Browse files
app.py
CHANGED
@@ -120,14 +120,14 @@ def video_frame_callback(frame: av.VideoFrame) -> av.VideoFrame:
|
|
120 |
|
121 |
#Render Counter to our camera screen
|
122 |
#Setup Status box
|
123 |
-
cv2.rectangle(image,(0,0),(500,80),(
|
124 |
|
125 |
#REP data
|
126 |
-
cv2.putText(image,'Left',(10,
|
127 |
-
cv2.FONT_HERSHEY_SIMPLEX,0.
|
128 |
|
129 |
cv2.putText(image,str(correct),
|
130 |
-
(10,60),cv2.FONT_HERSHEY_SIMPLEX,2,(255,255,255),2,cv2.LINE_AA)
|
131 |
#Stage data for left leg
|
132 |
|
133 |
cv2.putText(image,'STAGE',(230,12),
|
|
|
120 |
|
121 |
#Render Counter to our camera screen
|
122 |
#Setup Status box
|
123 |
+
cv2.rectangle(image,(0,0),(500,80),(0,123,255),-1) # Bright blue background
|
124 |
|
125 |
#REP data
|
126 |
+
cv2.putText(image,'Left',(10,25),
|
127 |
+
cv2.FONT_HERSHEY_SIMPLEX,0.8,(255,255,255),2,cv2.LINE_AA) # White text with larger font size
|
128 |
|
129 |
cv2.putText(image,str(correct),
|
130 |
+
(10,60),cv2.FONT_HERSHEY_SIMPLEX,2,(255,255,255),2,cv2.LINE_AA) # White text for count
|
131 |
#Stage data for left leg
|
132 |
|
133 |
cv2.putText(image,'STAGE',(230,12),
|