Pratyush101 commited on
Commit
b215d73
·
verified ·
1 Parent(s): 2ac10ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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),(245,117,16),-1)
124
 
125
  #REP data
126
- cv2.putText(image,'Left',(10,12),
127
- cv2.FONT_HERSHEY_SIMPLEX,0.5,(0,0,0),1,cv2.LINE_AA)
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),