Skip to main content

PTZ Camera Control using Python

This library is designed to control PTZ cameras using the ONVIF, VAPIX and SUNAPI.

ONVIF (Open Network Video Interface Forum) is a global and open industry forum with the goal of facilitating the development and use of a global open standard for the interface of physical IP-based security products. ONVIF creates a standard for how IP products within video surveillance and other physical security areas can communicate with each other. ONVIF is an organization started in 2008 by Axis Communications, Bosch Security Systems and Sony.

VAPIX® is Axis Camera API.

SUNAPI® is Hanwha Camera API.

Installation

pip install pyptz

ONVIF

from pyptz.onvif_control import ONVIFCamera

onvif_camera = ONVIFCamera('192.168.1.100', '88', 'admin', 'password')
pan, tilt, zoom = onvif_camera.get_ptz_status()
print(pan, tilt, zoom)

VAPIX

from pyptz.vapix_control import VAPIXCamera

vapix_camera = VAPIXCamera('192.168.1.100', 'admin', 'password')
pan, tilt, zoom = vapix_camera.get_ptz_status()
print(pan, tilt, zoom)

SUNAPI

from pyptz.sunapi_control import SUNAPICamera

sunapi_camera = SUNAPICamera('192.168.1.100', 'admin', 'password')
pan, tilt, zoom = sunapi_camera.get_ptz_status()[:3]
print(pan, tilt, zoom)

Metadata

Release files for pyptz 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyptz 0.1.8
File Size Uploaded
pyptz-0.1.8.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyptz 0.1.8
File Interpreter ABI Platform
pyptz-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 18.5 kB

Release files / pyptz-0.1.8.tar.gz

Download URL pyptz-0.1.8.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3fbd72d624ba0c62eb199665075eb3888579bc611c28d324cd8edf903834d21a
BLAKE2b-256 checksum
How to use checksums
82b01a1cfde536bf5d9ad6b413a358dd978dd8df7f42e4fc2724a677821c6b68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.18

Release files / pyptz-0.1.8-py3-none-any.whl

Download URL pyptz-0.1.8-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a9e79b58d185d0c3e8e8d2dfecea9fe5e5aca260ac8c86f544340d4bea5bd8d
BLAKE2b-256 checksum
How to use checksums
be6016b221562c86903ecf05aff2a3db21386de764f5aba8533e9f23f963424a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.18

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

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