Skip to content

tconkling/streamlit-webcam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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