Skip to main content

PTZ Camera Control using Python

Project description

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)

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

pyptz-0.1.8.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

pyptz-0.1.8-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file pyptz-0.1.8.tar.gz.

File metadata

  • Download URL: pyptz-0.1.8.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for pyptz-0.1.8.tar.gz
Algorithm Hash digest
SHA256 3fbd72d624ba0c62eb199665075eb3888579bc611c28d324cd8edf903834d21a
MD5 90df20ec51a886d425ea91e997f14d81
BLAKE2b-256 82b01a1cfde536bf5d9ad6b413a358dd978dd8df7f42e4fc2724a677821c6b68

See more details on using hashes here.

File details

Details for the file pyptz-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: pyptz-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for pyptz-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 2a9e79b58d185d0c3e8e8d2dfecea9fe5e5aca260ac8c86f544340d4bea5bd8d
MD5 c5487d9fcbfccd142a33b5b7d4d51be6
BLAKE2b-256 be6016b221562c86903ecf05aff2a3db21386de764f5aba8533e9f23f963424a

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