Spaces:
Sleeping
Sleeping
File size: 327 Bytes
e802280 6a6cd90 a4e7061 6a6cd90 e802280 6a6cd90 e802280 6a6cd90 e802280 6a6cd90 e802280 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from streamlit_webrtc import webrtc_streamer
import av
import cv2
def video_frame_callback(frame):
img = frame.to_ndarray(format="bgr24")
img=cv2.circle(img,(90,90),80,(255,0,0),9)
return av.VideoFrame.from_ndarray(img, format="bgr24")
webrtc_streamer(key="example", video_frame_callback=video_frame_callback) |