Registry / web-framework / streamlit-camera-input-live

streamlit-camera-input-live

JSON →
library0.2.0pypypiunverified

Streamlit Camera Input Live is an alternative version of Streamlit's built-in `st.camera_input` component. Unlike the standard version, it returns webcam images live without requiring a button press, making it suitable for real-time preview applications. The current version is 0.2.0, with an infrequent release cadence, having last been updated in September 2022.

pip install streamlit-camera-input-live
INSTALL
IMPORT
SIG · STREAMLIT-CAMERA-I
S
streamlit-camera-input-live
web-frameworkpythonv0.2.0
Install
15.5s avg
Import
Disk
433MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.2.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.920 runs
installs and imports cleanly · install 0.0s · import 0.000s · 444.8MB
glibc
py 3.103.920 runs
installs and imports cleanly · install 15.5s · import 0.000s · 414MB
433MB installed
● package 433MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

camera_input_live
from streamlit_camera_input_live import camera_input_live

This quickstart demonstrates how to embed a live camera feed into a Streamlit application. It uses `camera_input_live` to continuously capture frames and displays them using `st.image`. A checkbox is included to toggle the visibility of camera controls.

import streamlit as st from streamlit_camera_input_live import camera_input_live st.set_page_config(layout="centered") st.title("Streamlit Live Camera Input Demo") st.write("### See a new image every second") controls = st.checkbox("Show camera controls", value=True) image = camera_input_live(show_controls=controls, key="my_camera_input") if image is not None: st.image(image, caption="Live Camera Feed", use_column_width=True) st.success("Image received live!") else: st.info("Waiting for camera input...")
Debug
Known issues
breakingVersion 0.2.0 standardized argument casing, which may break older code relying on different case conventions for parameters. For example, `show_controls` might have been `showControls` in prior versions.
fix
Review the function signature and update argument names to use standard Python snake_case (e.g., `show_controls`).
affects: <=0.1.0
gotchaThis component prioritizes simplicity over raw performance and may be noticeably slower for high-frame-rate, real-time video processing compared to alternatives like `streamlit-webrtc`.
fix
For basic live previews, adjust the `debounce` parameter (e.g., `debounce=100` for 100ms updates). For advanced, high-performance real-time applications, consider using `streamlit-webrtc`.
affects: All versions
gotchaThe component does not natively support selecting the back camera on mobile devices, defaulting to the front camera.
fix
There is no direct fix within the component itself. If back camera access is critical, more advanced Streamlit components or custom JavaScript might be required, or using `streamlit-webrtc` which often offers more granular camera controls.
affects: All versions
Upgrade
Version history
0.2.0latest on PyPI · released Sep 27, 2022
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
Amazon
1
OpenAI (training)
1
Resources
streamlit-camera-input-live — pip install streamlit-camera-input-live · libregistry