VAPIX® Version 3: View Area API
VAPIX® Version 3: View Area API
Copyright Notice
This document is copyright protected and is the property of Axis Communications AB and
may not be copied, reproduced or distributed in any way without the prior written
consent of Axis Communications AB.
©2008 Axis Communications AB. AXIS COMMUNICATIONS, AXIS, ETRAX, ARTPEC and
VAPIX are registered trademarks of Axis AB. All other company names and products are
trademarks or registered trademarks of their respective companies. We reserve the right
to introduce modifications without notice.
Terms of Use
The use of the AXIS VAPIX application programming interface (hereinafter referred
to as "the INTERFACE" as further specified below, is subject to the terms and
conditions of the License Agreement below. By using the INTERFACE and the written
specification of the INTERFACE (hereinafter referred to as “the INTERFACE
DESCRIPTION"), whether in whole or in part, you agree to be bound by the terms of
the License Agreement.
6. DISCLAIMER
6.1. THE INTERFACE AND THE INTERFACE DESCRIPTION ARE DELIVERED FREE OF
CHARGE AND “AS IS” WITHOUT WARRANTY OF ANY KIND. THE ENTIRE RISK AS
TO THE USE, RESULTS AND PERFORMANCE OF THE INTERFACE AND THE
INTERFACE DESCRIPTION IS ASSUMED BY THE USER/YOU. AXIS DISCLAIMS ALL
WARRANTIES, WHETHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE, TITLE, NON-INFRINGEMENT AND PRODUCT LIABILITY,
OR ANY WARRANTY ARISING OUT OF ANY PROPOSAL, SPECIFICATION OR
SAMPLE WITH RESPECT TO THE INTERFACE AND THE INTERFACE DESCRIPTION.
6.2. YOU ARE YOURSELF RESPONSIBLE FOR EXAMINING WHETHER THE INTERFACE
AND THE INTERFACE DESCRIPTION ARE ENCUMBERED BY OR INFRINGES UPON
A RIGHT HELD BY A THIRD PARTY. AXIS, WHO HAS NOT UNDERTAKEN ANY
SUCH INVESTIGATIONS, HAS NO KNOWLEDGE OF NOR DOES AXIS ACCEPT ANY
LIABILITY FOR ANY SUCH ENCUMBRANCES OR INFRINGEMENTS.
6.3. YOU UNDERTAKE NOT TO PURSUE ANY CLAIMS WHATSOEVER AGAINST AXIS OR
ITS AFFILIATES RELATING TO OR EMANATING FROM THE INTERFACE AND THE
INTERFACE DESCRIPTION.
6.4. AXIS SHALL NOT BE LIABLE FOR LOSS OF DATA, LOSS OF PRODUCTION, LOSS
OF PROFIT, LOSS OF USE, LOSS OF CONTRACTS OR FOR ANY OTHER
CONSEQUENTIAL, ECONOMIC OR INDIRECT LOSS WHATSOEVER IN RESPECT OF
USE OR DISPOSITION OF THE INTERFACE AND THE INTERFACE DESCRIPTION.
6.5. AXIS TOTAL LIABILITY FOR ALL CLAIMS IN ACCORDANCE WITH THE USE OF THE
INTERFACE AND THE INTERFACE DESCRIPTION SHALL NOT EXCEED THE PRICE
PAID FOR THE INTERFACE AND THE INTERFACE DESCRIPTION.
6.6. YOU SHALL INDEMNIFY AND HOLD AXIS AND ITS AFFILIATES HARMLESS FROM
ANY CLAIMS WHATSOEVER FROM ANY THIRD PARTY AGAINST AXIS OR ITS
AFFILIATES RELATING TO OR EMANATING FROM YOUR USE OF THE INTERFACE
AND THE INTERFACE DESCRIPTION UNDER THIS LICENSE AGREEMENT. THE
FOREGOING INDEMNIFICATION INCLUDES BUT IS NOT LIMITED TO ANY AND
ALL DAMAGES, COSTS AND EXPENSES (INCLUDING REASONABLE ATTORNEYS’
FEES).
_____________________________
Table of Contents
VAPIX LICENSE AGREEMENT .................................................................................. 2
1 Overview ...................................................................................................... 5
1.1 Description .............................................................................................. 5
1.2 History ................................................................................................... 5
2 Prerequisites ................................................................................................. 5
2.1 Identification ........................................................................................... 5
2.2 Dependencies .......................................................................................... 5
3 Common Examples ......................................................................................... 6
3.1 Check for view area support ...................................................................... 6
3.2 Add a view area ....................................................................................... 6
3.3 Request MJPEG video over HTTP ................................................................. 7
3.4 Request video stream over RTSP ................................................................ 7
4 Parameters ................................................................................................... 8
4.1 Enable and Name ..................................................................................... 8
4.1.1 [Image.I#] ....................................................................................... 8
4.2 Privacy masking and motion detection ......................................................... 8
4.2.1 [Image] ............................................................................................ 9
4.2.2 [ImageSource] .................................................................................. 9
4.3 PTZ ...................................................................................................... 10
4.3.1 [PTZ.ImageSource.I0] ...................................................................... 10
4.3.2 [PTZ.Various.V#] ............................................................................. 10
5 HTTP API .................................................................................................... 11
5.1 DPTZ control ......................................................................................... 11
5.2 DPTZ configuration ................................................................................. 11
5.3 Video streaming ..................................................................................... 12
6 References .................................................................................................. 12
1 Overview
1.1 Description
View area support adds multiple digital PTZ view areas within a camera image that are
streamed and controlled separately, in much the same way that multiple cameras are
accessed and controlled in a multi-port video encoder with one IP address.
Each view area is a defined area within a mega-pixel image and has its own video
streaming configuration, PTZ configuration and home positions. These view areas are
controlled and accessed using the camera URL option.
A view area could be used, for example, where one megapixel camera monitors a large
area such as the front of a business at a relatively low resolution. But within the camera
image, one view area could be configured to monitor a particular part of the image such
as a cash register at much higher resolution to facilitate face recognition. Using view
areas saves bandwidth by concentrating the higher resolution monitoring to a much
smaller area of the entire camera image.
1.2 History
Version Date Comment
2 Prerequisites
2.1 Identification
Properties: Properties.PTZ.PTZ=yes 1 , Properties.PTZ.DigitalPTZ=yes1,
Properties.Image.NbrOfViews=<positive integer> 2
Product category: Axis megapixel cameras
VAPIX version: 3
2.2 Dependencies
Parameter handling:
• The different view areas are enabled and locked using Parameter Management
defined in the HTTP API (VAPIX® version 3) (see 6 References).
• The camera URL option is used to identify the view areas.
Digital PTZ:
• The size and location of the view areas are controlled and configured using PTZ.
See the Parameter Specifications (VAPIX® version 2) for information about
parameters, descriptions and values.
• The camera URL option is used to identify the view areas.
1
PTZ is used to configure view areas, but it is not needed for viewing a view area if PTZ is not requested.
2
Properties.Image.NbrOfViews is the maximum number of view areas, each with its own image stream
configuration. It is the maximum camera URL option value when streaming video.
Video streaming:
• The different view areas are streamed according to the RTSP API (VAPIX® version
3), and the Image and Video section in the HTTP API (VAPIX® version 3).
• Streaming configuration of the different view areas is done using the normal
image stream parameters.
• The camera URL option is used to identify the view areas.
3 Common Examples
3.1 Check for view area support
Example: See if the megapixel camera has view area support
http://<servername>/axis-cgi/param.cgi?action=list
&group=Properties.API.HTTP.Version,Properties.PTZ.PTZ,
Properties.PTZ.DigitalPTZ,Properties.Image.NbrOfViews
Response:
Properties.API.HTTP.Version=3
Properties.PTZ.PTZ=yes
Properties.PTZ.DigitalPTZ=yes
Properties.Image.NbrOfViews=8
http://myserver/axis-cgi/admin/param.cgi?action=update&Image.I2.Enabled=yes
Response:
OK
2. Name the view area by assigning a name to the image stream configuration for
camera 3. The default name for camera 3, "View area 3", is here changed to 'My
area'.
http://myserver/axis-cgi/admin/param.cgi?action=update
&Image.I2.Name=My%20area
Response:
OK
http://myserver/axis-cgi/com/ptz.cgi?camera=3&zoom=7000&pan=50&tilt=50
http://myserver/axis-cgi/com/ptzconfig.cgi?camera=3
&setserverpresetname=MyPreset&home=yes
http://myserver/axis-cgi/admin/param.cgi?action=update
&PTZ.Various.V3.Locked=true
Response:
OK
http://myserver/axis-cgi/mjpg/video.cgi?camera=3
For the complete API see the HTTP API (VAPIX® version 3) (see 6 References).
For a complete API see the RTSP API (VAPIX® version 3).
4 Parameters
4.1 Enable and Name
4.1.1 [Image.I#]
Group range: 0-N*
Where N* = Image.NbrOfConfigs - 1
Name View area String Read: Name of the view area configured for
<nbr> admin1 , this group.
operator,
The <nbr> starts from 1, e.g. "View
viewer
area 1" in Image.I0.Name.
Write:
admin,
operator
Note:
1
Image.I0 has default yes, and is read-only for all users.
So, if motion detection is set up for the entire image, the configured coordinates are
related to the complete image. Also, use a video stream with the option 'overview=1'
(see 5.3). See section 6 References for further information about motion detection.
The parameters Image.MotionDetection and ImageSource.MotionDetection define how
motion detection operates. See below.
4.2.1 [Image]
4.2.2 [ImageSource]
4.3 PTZ
4.3.1 [PTZ.ImageSource.I0]
Notes:
1
If you are using a VAPIX® 2 product, PTZEnabled and MaxZoom are found at
ImageSource.I0.DigitalPTZ.Enabled and ImageSource.I0.DigitalPTZ.MaxZoom
respectively.
2
To determine the value for MaxZoom, take the width of the largest resolution your
camera supports and divide it by the width of the resolution you want to use.
Then take that value and multiply it by 100.
For example, say that you want to be able to zoom in to 640x480, and the
maximum supported resolution for your camera is 1280x960. The value for
MaxZoom will be: 100(1280/640) = 200 (i.e. set value to 200). It will then be
possible to zoom in to an area that is 640x480, and the largest resolution to
stream will be 640x480.
4.3.2 [PTZ.Various.V#]
The # is replaced with a group number starting from one, e.g. PTZ.Limit.L1. Maximal
value must be >= minimal value.
Group range: 1-N*
(Where N = PTZ.NbrOfCameras)
5 HTTP API
This section includes additional API's for view area support.
Note:
1
Max number product dependent, defined by PTZ.NbrOfCameras.
Note:
1
Max number product dependent, defined by PTZ.NbrOfCameras.
Note:
1
Max number product dependent, defined by Image.NbrOfConfigs .
6 References
All VAPIX® documentation is available at:
http://www.axis.com/techsup/cam_servers/dev/cam_http_api_index.php
HTTP API (VAPIX® Version 3)
RTSP API (VAPIX® Version 3)
Parameter Specification (VAPIX® Version 2)