EngAbod commited on
Commit
e9b42e1
·
1 Parent(s): c5f080d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -334,7 +334,8 @@ class VideoProcessor:
334
  cv2.putText(frm, text, (20, 50), cv2.FONT_HERSHEY_SIMPLEX, 2, (0, 255, 0))
335
  else:
336
  cv2.putText(frm, text, (20, 50), cv2.FONT_HERSHEY_SIMPLEX, 2, (0, 0, 255))
337
- frm = add_circle_image_to_black_image(frm)
 
338
  return av.VideoFrame.from_ndarray(frm, format='bgr24')
339
  # Inside your Streamlit app
340
 
 
334
  cv2.putText(frm, text, (20, 50), cv2.FONT_HERSHEY_SIMPLEX, 2, (0, 255, 0))
335
  else:
336
  cv2.putText(frm, text, (20, 50), cv2.FONT_HERSHEY_SIMPLEX, 2, (0, 0, 255))
337
+ frm = add_circle_image_to_black_image(frm)
338
+ frm = frm.to_ndarray(format="bgr24")
339
  return av.VideoFrame.from_ndarray(frm, format='bgr24')
340
  # Inside your Streamlit app
341