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-liveVerified import paths — ran on the pinned version, not inferred.
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.
Review the function signature and update argument names to use standard Python snake_case (e.g., `show_controls`).
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`.
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.
No dependency data recorded yet.