streamlit-webcam-example
一个示例 。显示网络摄像头视频提要并接收网络摄像头快照。
随意分叉和修改!
安装
pip install streamlit-webcam-example
用法
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 )
1