Skip to main content

A Python package for controlling PTZ cameras through various protocols

Project description

Peateazea

A Python package for controlling PTZ (Pan-Tilt-Zoom) cameras through various protocols. Currently supports Avkans cameras, VISCA, and VISCA over UDP.

Features

  • Multi-protocol support:
    • Avkans cameras
    • VISCA (TCP)
    • VISCA over UDP
  • Basic PTZ controls (pan, tilt, zoom)
  • Preset position recall
  • Home position support
  • Simple, unified API across different protocols

Installation

Install using pip:

pip install peateazea

Or install from source:

git clone https://github.com/benbaptist/peateazea.git
cd peateazea
pip install -e .

Requirements

  • Python 3.9 or higher
  • requests
  • visca-over-ip

Usage

Basic Example

from peateazea import Avkans, Visca, ViscaUDP

# For Avkans cameras
camera = Avkans("192.168.1.100", 80, username="admin", password="password")

# For VISCA over TCP
camera = Visca("192.168.1.100", 1259)

# For VISCA over UDP
camera = ViscaUDP("192.168.1.100", 52381)

# Basic controls
camera.pantilt(-12, 0)  # Pan left
camera.pantilt(12, 0)   # Pan right
camera.pantilt(0, -12)  # Tilt up
camera.pantilt(0, 12)   # Tilt down

camera.zoom(7)    # Zoom in
camera.zoom(-7)   # Zoom out

camera.stop()     # Stop all movement
camera.home()     # Return to home position

# Recall preset position
camera.recall_preset(1)

License

MIT License

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

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

peateazea-0.1.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

peateazea-0.1.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file peateazea-0.1.1.tar.gz.

File metadata

  • Download URL: peateazea-0.1.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for peateazea-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a1f9be1fdfa2f80d5093c748a448890b4ba186f51c972add95f5e8481cd0193a
MD5 63ccc51a629a1f77d59b16ebdceb70ba
BLAKE2b-256 0cfae7c096f666ba68b3f056411dfa4fe35a000a2a5cf2f621c1e0dd9be81ad7

See more details on using hashes here.

File details

Details for the file peateazea-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: peateazea-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for peateazea-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf5570ee6f49c4861d9826b9f2e4955b21eb6826f9b180a04ea9af4f05e687d5
MD5 1a4b86d4b3e6a05673ef9d05d8cdf000
BLAKE2b-256 a111e6b69bb4bde9ed5ff41adde2981185ec5af43e8da2d8e37ebec5a93b83d1

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