Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 538 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 538 Bytes

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