asagar60 / streamlit-webcam

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:MIT License


Languages

Language:TypeScript 62.6%Language:Python 25.1%Language:HTML 10.2%Language:Shell 2.1%