Realtime webcam streaming and video processing with a FastAPI UI
Project description
Kamera
Kamera is a small Python app that streams your webcam to a local web page and lets you control video effects in real time.
Features
- Live webcam stream in your browser
- Camera selection (
camera_index) - Rotation (
0,90,180,270) - Brightness control (
0.1to2.0) - Grayscale and mirror toggles
- Filters:
none,sepia,blur,edges - Simple HTTP API for automation
Requirements
- Python
3.10+
Install
pip install kamera
If pip is not available in your shell, use:
uv tool run --from kamera kamera
Run
kamera
Open: http://127.0.0.1:4141
How to Use
- Start
kamera - Open the web UI
- Pick a camera index if needed (
0is usually default camera) - Change controls and click Apply
- Click Reset to restore defaults
API
GET /video_feed
Returns the MJPEG stream.
GET /api/settings
Returns current settings.
POST /api/settings
Updates one or more settings.
Example:
curl -X POST http://127.0.0.1:4141/api/settings \
-H "content-type: application/json" \
-d '{"camera_index":1,"rotate":90,"brightness":1.3,"grayscale":true,"mirror":false,"filter_name":"sepia"}'
POST /api/settings/reset
Resets all settings to defaults.
curl -X POST http://127.0.0.1:4141/api/settings/reset
Development
uv sync --extra dev
uv run pytest
uv run kamera
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kamera-1.0.1.tar.gz.
File metadata
- Download URL: kamera-1.0.1.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
749c7d6027fc28dfd1dea553d992ca8acec4f005c28b31d81fba004e37a611d6
|
|
| MD5 |
cf9cacef9a1626bfb668b5e8d6995eb6
|
|
| BLAKE2b-256 |
dc211ee0ee121d2a9aabb676433195291d02d77875a6353bb3cc15f276c9ed2f
|
File details
Details for the file kamera-1.0.1-py3-none-any.whl.
File metadata
- Download URL: kamera-1.0.1-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63707649862d2488da2de1ae78f629a30e11b7324b417a00ed52f0c26a81836f
|
|
| MD5 |
cb007f368af3c4dd1382b27386c5e42e
|
|
| BLAKE2b-256 |
4ff398629a7b131342352b3643e59131873b8bade65c8c3b65164da4294c05af
|