tconkling / streamlit-webcam

MIT License
26 stars 9 forks source link

streamlit-webcam-example

An example Streamlit Component. Displays a webcam video feed and receives webcam snapshots.

Feel free to fork and modify!

Installation

pip install streamlit-webcam-example

Usage

import streamlit as st
from webcam import webcam

captured_image = webcam()
if captured_image is None:
    st.write("Waiting for capture...")
else:
    st.write("Got an image from the webcam:")
    st.image(captured_image)

Screenshot