You can try out the sample app using the following commands.
$ pip install streamlit-webrtc opencv-python
$ streamlit run https://raw.githubusercontent.com/whitphx/streamlit-webrtc-example/main/app.py
You can also try it out on Streamlit Sharing.
The deployment of this sample app is managed in this repository: https://github.com/whitphx/streamlit-webrtc-example/.
This post explains how to use streamlit-webrtc
to build a real-time computer vision app.