Access Webcam Video from a hosted Streamlit application

Hello,

I created streamlit-webrtc, which might be useful in such use cases.
Here is the topic about it: New Component: streamlit-webrtc, a new way to deal with real-time media streams

With this component, I confirmed it was possible to host a Streamlit app with computer vision models on a remote server (Heroku, in my sample case) and use it with a local webcam via web browser in real time, even on a smartphone.

I posted a working example in the topic linked above, including object detection with MobileNet SSD, simple computer vision processing with OpenCV, and so on.

4 Likes