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
Release files for kamera 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kamera-1.0.1.tar.gz | 11.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kamera-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.1 kB
Release files / kamera-1.0.1.tar.gz
| Download URL | kamera-1.0.1.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
749c7d6027fc28dfd1dea553d992ca8acec4f005c28b31d81fba004e37a611d6
|
|
BLAKE2b-256 checksum How to use checksums |
dc211ee0ee121d2a9aabb676433195291d02d77875a6353bb3cc15f276c9ed2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / kamera-1.0.1-py3-none-any.whl
| Download URL | kamera-1.0.1-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63707649862d2488da2de1ae78f629a30e11b7324b417a00ed52f0c26a81836f
|
|
BLAKE2b-256 checksum How to use checksums |
4ff398629a7b131342352b3643e59131873b8bade65c8c3b65164da4294c05af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|