Skip to main content

Effortless real-time webcam streaming and video processing

Project description

Kamera

Kamera makes real-time webcam streaming effortless. The only thing you need to know is:

pip install kamera
kamera

And voilà! Your webcam is live and streaming at http://localhost:4141. No setup headaches, just instant results.

Demo

dog

Features

  • Stream live video from your webcam directly to a web interface.
  • Adjust settings dynamically, including:
    • Brightness
    • Rotation
    • Grayscale
    • Mirroring
    • Filters (e.g., Sepia, Blur, Edge Detection)
  • Easy-to-use API built with FastAPI.
  • Real-time video processing using OpenCV.

API Endpoints

  • GET /video_feed: Stream the live video feed.
  • POST /settings: Update video processing settings dynamically.

Settings Example

Use the /settings endpoint to update the following parameters:

  • rotate: Rotation angle (0, 90, 180, 270).
  • brightness: Adjust the frame brightness (default: 1.0).
  • grayscale: Toggle grayscale mode (default: False).
  • mirror: Mirror the video feed (default: False).
  • filter_name: Apply a filter (none, sepia, blur, edges).

Example request (using curl):

curl -X POST http://localhost:4141/settings \
  -d "rotate=90" \
  -d "brightness=1.5" \
  -d "grayscale=true" \
  -d "filter_name=sepia"

License

This project is licensed under the MIT License.


Crafted with ❤️ by Mert Cobanov

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-0.4.1.tar.gz (6.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-0.4.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file kamera-0.4.1.tar.gz.

File metadata

  • Download URL: kamera-0.4.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for kamera-0.4.1.tar.gz
Algorithm Hash digest
SHA256 5b2a0b4682c0a1f4f99efbaaca7988223068e676006f7974ed605e8fd75cb28e
MD5 11f49bd855a0b45e2ae5c99be95e1a13
BLAKE2b-256 660e6e9070e927d462578054e3c475b704febdd3f954d3396c1f2bcba6463223

See more details on using hashes here.

File details

Details for the file kamera-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: kamera-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for kamera-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 85fbeeb5c663c3c0b660cbb02bd24d8ef6a38b32478f944175c3a08119c73b7c
MD5 0d7f49bd178b0510d8f279b0d247e056
BLAKE2b-256 6cbf98938d647545c01e032ac83670ecc672a152d4adfcb3c9ce5888fbedb56b

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