Skip to main content

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.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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kamera-1.0.1.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kamera-1.0.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

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

Hashes for kamera-1.0.1.tar.gz
Algorithm Hash digest
SHA256 749c7d6027fc28dfd1dea553d992ca8acec4f005c28b31d81fba004e37a611d6
MD5 cf9cacef9a1626bfb668b5e8d6995eb6
BLAKE2b-256 dc211ee0ee121d2a9aabb676433195291d02d77875a6353bb3cc15f276c9ed2f

See more details on using hashes here.

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

Hashes for kamera-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 63707649862d2488da2de1ae78f629a30e11b7324b417a00ed52f0c26a81836f
MD5 cb007f368af3c4dd1382b27386c5e42e
BLAKE2b-256 4ff398629a7b131342352b3643e59131873b8bade65c8c3b65164da4294c05af

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page