# 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
```python
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
```python
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
```python
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)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/jahongir7174/PyPTZ",
"name": "pyptz",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "ONVIF,VAPIX,SUNAPI",
"author": "Jahongir Yunusov",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/82/b0/1a1cfde536bf5d9ad6b413a358dd978dd8df7f42e4fc2724a677821c6b68/pyptz-0.1.8.tar.gz",
"platform": null,
"description": "# PTZ Camera Control using Python\n\nThis library is designed to control PTZ cameras using the ONVIF, VAPIX and SUNAPI.\n\n**ONVIF (Open Network Video Interface Forum)** is a global and open industry forum with the goal of facilitating the\ndevelopment and use of a global open standard for the interface of physical IP-based security products.\nONVIF creates a standard for how IP products within video surveillance and other physical security areas can communicate\nwith each other.\nONVIF is an organization started in 2008 by Axis Communications, Bosch Security Systems and Sony.\n\n**VAPIX\u00ae** is Axis Camera API.\n\n**SUNAPI\u00ae** is Hanwha Camera API.\n\n## Installation\n\n````\npip install pyptz\n````\n\n## ONVIF\n\n```python\nfrom pyptz.onvif_control import ONVIFCamera\n\nonvif_camera = ONVIFCamera('192.168.1.100', '88', 'admin', 'password')\npan, tilt, zoom = onvif_camera.get_ptz_status()\nprint(pan, tilt, zoom)\n```\n\n## VAPIX\n\n```python\nfrom pyptz.vapix_control import VAPIXCamera\n\nvapix_camera = VAPIXCamera('192.168.1.100', 'admin', 'password')\npan, tilt, zoom = vapix_camera.get_ptz_status()\nprint(pan, tilt, zoom)\n```\n\n## SUNAPI\n\n```python\nfrom pyptz.sunapi_control import SUNAPICamera\n\nsunapi_camera = SUNAPICamera('192.168.1.100', 'admin', 'password')\npan, tilt, zoom = sunapi_camera.get_ptz_status()[:3]\nprint(pan, tilt, zoom)\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "PTZ Camera Control using Python",
"version": "0.1.8",
"project_urls": {
"Homepage": "https://github.com/jahongir7174/PyPTZ"
},
"split_keywords": [
"onvif",
"vapix",
"sunapi"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "be6016b221562c86903ecf05aff2a3db21386de764f5aba8533e9f23f963424a",
"md5": "c5487d9fcbfccd142a33b5b7d4d51be6",
"sha256": "2a9e79b58d185d0c3e8e8d2dfecea9fe5e5aca260ac8c86f544340d4bea5bd8d"
},
"downloads": -1,
"filename": "pyptz-0.1.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c5487d9fcbfccd142a33b5b7d4d51be6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 9726,
"upload_time": "2024-02-06T06:08:57",
"upload_time_iso_8601": "2024-02-06T06:08:57.595418Z",
"url": "https://files.pythonhosted.org/packages/be/60/16b221562c86903ecf05aff2a3db21386de764f5aba8533e9f23f963424a/pyptz-0.1.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "82b01a1cfde536bf5d9ad6b413a358dd978dd8df7f42e4fc2724a677821c6b68",
"md5": "90df20ec51a886d425ea91e997f14d81",
"sha256": "3fbd72d624ba0c62eb199665075eb3888579bc611c28d324cd8edf903834d21a"
},
"downloads": -1,
"filename": "pyptz-0.1.8.tar.gz",
"has_sig": false,
"md5_digest": "90df20ec51a886d425ea91e997f14d81",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 8801,
"upload_time": "2024-02-06T06:08:59",
"upload_time_iso_8601": "2024-02-06T06:08:59.515465Z",
"url": "https://files.pythonhosted.org/packages/82/b0/1a1cfde536bf5d9ad6b413a358dd978dd8df7f42e4fc2724a677821c6b68/pyptz-0.1.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-06 06:08:59",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "jahongir7174",
"github_project": "PyPTZ",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pyptz"
}