Possible to access webcam realtime in a streamlit app?

Hello @malraharsh,

Thanks for sharing your code. When I tried it locally it works perfectly but seems not working when I share.
I got errors like below, it seems it cannot access to camera source

error: OpenCV(4.5.1) /tmp/pip-req-build-hj027r8z/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'
File "/app/adas_demo/streamlit.py", line 11, in <module>
frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)

Didn’t you have a same issue? I’d like to know how you fixed.