smartsenselab / sensecam-control

MIT License
45 stars 26 forks source link

Axis Vapix/Onvif Python

This library is designed to provide control and configuration of Axis cameras using the Onvif and Vapix protocol.

VAPIX® is Axis' own open API (Application Programming Interface) using standard protocols enabling integration into a wide range of solutions on different platforms.

VAPIX® provides functionality for requesting images, controlling Pan Tilt Zoom, controlling Input and Output ports, retrieve and control internal settings, to manage Events, record and retrieve video to/from the SD card, and much, much more. Almost all functionality available in Axis products can be controlled using VAPIX®, some functions are even only supported via VAPIX®, for example, to retrieve Bitmap images.

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.

Installation

Install the package through pip:

pip install sensecam-control

Execution

Example of use:

from sensecam_control import vapix_control
from sensecam_control import onvif_control

Camera1 = vapix_control.CameraControl(<ip>, <login>, <password>)
Camera2 = onvif_control.CameraControl(<ip>, <login>, <password>)

Camera1.absolute_move(10, 20, 1)
Camera1.absolute_move(10, 20, 1, 50)

Camera2.absolute_move(0.02, 0.60, 0.0)
Camera2.relative_move(0.3, -0.2, 0)

Functions

Vapix Control

Vapix Configuration

Onvif Control

Onvif Config