Skip to main content

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.1 to 2.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

  1. Start kamera
  2. Open the web UI
  3. Pick a camera index if needed (0 is usually default camera)
  4. Change controls and click Apply
  5. 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)

Source distribution for kamera 1.0.1
File Size Uploaded
kamera-1.0.1.tar.gz 11.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kamera 1.0.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page