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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyptz-0.1.8.tar.gz | 8.8 kB | Without provenance | Details for pyptz-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyptz-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for pyptz-0.1.8-py3-none-any.whl |
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
|
Security for pyptz 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.