No project description provided
Project description
streamlit-webrtc
Example
You can try out the sample app using the following commands.
$ pip install streamlit-webrtc opencv-python-headless matplotlib pydub
$ 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/.
API
Currently there is no documentation about the interface. See the example app.py for the usage. The API is not finalized yet and can be changed without backward compatiblity in the future releases until v1.0.
For users since versions <0.20
VideoTransformerBase
and its transform
method have been marked as deprecated in v0.20.0. Please use VideoProcessorBase#recv()
instead.
Note that the signature of the recv
method is different from the transform
in that the recv
has to return an instance of av.VideoFrame
or av.AudioFrame
. See the samples in app.py.
Resources
- Building a Web-Based Real-Time Computer Vision App with Streamlit (dev.to)
- This post explains how to use
streamlit-webrtc
to build a real-time computer vision app.
- This post explains how to use
- New Component: streamlit-webrtc, a new way to deal with real-time media streams (Streamlit Community)
- This is a forum topic where
streamlit-webrtc
has been introduced and discussed about.
- This is a forum topic where
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for streamlit_webrtc-0.28.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd3e5a43402ae5921c9b8ad665ded9a0f0e41104627c41410d6d478631c20c41 |
|
MD5 | 0cdacb43e7e8d07a5d31a70691035bc2 |
|
BLAKE2b-256 | ab601e4f3324d49b224dc727a4f49a02f855c755fef192396c68e1fc527b6987 |