Skip to main content

Integrating AXIS Q6000-E

The innovative AXIS Q6000-E network camera is constructed to be used together with an AXIS Q60-E PTZ camera. The four camera heads in AXIS Q6000-E provide a 360° overview and the PTZ camera offers high detail optical zoom.

AXIS Q6000-E is to be mounted on top of the AXIS Q60-E PTZ camera. When mounted correctly, a connection between the two cameras is established automatically. After software setup and calibration, an operator can control the PTZ camera's pan, tilt and zoom movements by clicking in the image from AXIS Q6000-E. When clicking in the image and when using area zoom, the PTZ camera will be redirected to and zoom in on the object the operator clicked on.

AXIS Q6000-E mounted on top of the PTZ camera

The images above show how AXIS Q6000-E is mounted on top of the PTZ camera. The arrows in the image to the right indicate the four camera heads. For mounting instructions, see AXIS Q6000-E installation guide.

Authentication​

For detailed information on how to authenticate requests to this API, please refer to Authentication.

Configuring AXIS Q6000-E​

To configure AXIS Q6000-E, use the following APIs:

In the API descriptions, AXIS Q6000-E is referred to as the local camera and the PTZ camera is referred to as the remote camera.

Using AXIS Q6000-E​

The connection between AXIS Q6000-E and the PTZ camera is established automatically when the cameras are mounted. After calibration, the PTZ camera can be controlled from AXIS Q6000-E. When using area zoom or clicking in the image from AXIS Q6000-E, the remote PTZ camera will be redirected to and zoom in on the object the operator clicked on.

A client may, for example, display the four images from AXIS Q6000-E in a quad view and, at the same time, display the image from the PTZ camera in a separate window.

When sending the following area zoom command to AXIS Q6000-E, the PTZ camera will be redirected and will zoom in on the selected area.

curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/com/ptz.cgi?camera=1&areazoom=0,0,300"

It is also possible to use the center command (click-in-image) to control the PTZ camera:

curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/com/ptz.cgi?camera=1&center=20,50"

For information about /axis-cgi/com/ptz.cgi, see PTZ control.

Remote camera control API​

Description​

The Remote camera control API provides an interface for managing and monitoring VAPIX-enabled camera connections. This XML-based API supports schema versioning, connection parameter management, and real-time status monitoring across HTTP, HTTPS, and RTSP protocols.

Key features​

The Remote camera control API provides the following functionality:

  • Query supported API schema versions.
  • Retrieve and configure VAPIX connection settings including network parameters.
  • Monitor connection status for HTTP, HTTPS, and RTSP protocols.
  • Check port availability and status for individual protocols.
  • Retrieve the remote access URL for camera connections.

Identification​

The Remote camera control API is supported if:

  • Property: Properties.RemoteCameraControl.VAPIX=yes
note

This is applicable for firmware 9.80 and later.

Use cases​

Primary stakeholder​

The primary stakeholder for this API is system integrators and IT administrators who need to manage and monitor VAPIX-enabled camera connections.

Main clients​

The main clients for this API are:

  • Axis Device Application
  • Enterprise Video Management System (VMS)

GET VAPIX connection parameters​

Use getvapixparams.cgi to retrieve the current VAPIX connection parameters, including network settings and protocol ports.

note

All code listings are examples. For detailed description of each API command, see references.

Request

curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/remotecameracontrol/getvapixparams.cgi?schemaversion=1"

Response

<?xml version="1.0" encoding="utf-8" ?>
<RemoteCameraControlResponse SchemaVersion="1.0">
<GetVapixParamsSuccess>
<BaseConnectionParams>
<MACAddress>00:40:8C:12:34:56</MACAddress>
<Host>192.168.1.100</Host>
<DiscoveryMode>manual</DiscoveryMode>
</BaseConnectionParams>
<VapixConnectionParams>
<HTTPPort>80</HTTPPort>
<HTTPSPort>443</HTTPSPort>
<RTSPPort>554</RTSPPort>
<Username>admin</Username>
<Protocol>HTTPS</Protocol>
</VapixConnectionParams>
</GetVapixParamsSuccess>
</RemoteCameraControlResponse>

SET VAPIX connection parameters​

Use setvapixparams.cgi to configure the VAPIX connection parameters, including credentials and protocol ports. The parameters are only used for the connection to the remote camera. Settings on the remote camera itself are not changed. If a parameter is not specified, the remote camera's current settings are used.

Request

curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/remotecameracontrol/setvapixparams.cgi?schemaversion=1&host=192.168.1.101&discoverymode=manual&httpport=80&httpsport=443&rtspport=554&username=root&protocol=https&password=securepassword"

Response

<?xml version="1.0" encoding="utf-8" ?>
<RemoteCameraControlResponse SchemaVersion="1.0">
<GeneralSuccess />
</RemoteCameraControlResponse>

GET VAPIX status​

Use getvapixstatus.cgi to check the connection status across various protocols to safeguard the health of the connection and identify potential issues.

Request

curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/remotecameracontrol/getvapixstatus.cgi?schemaversion=1"

Response

<?xml version="1.0" encoding="utf-8" ?>
<RemoteCameraControlResponse SchemaVersion="1.0">
<GetVapixStatusSuccess>
<BaseConnectionStatus>
<StatusCode>0</StatusCode>
<Description>Connection OK</Description>
</BaseConnectionStatus>
<VapixConnectionStatus>
<HTTPStatus>
<StatusCode>0</StatusCode>
<Description>Connection OK</Description>
</HTTPStatus>
<HTTPSStatus>
<StatusCode>0</StatusCode>
<Description>Connection OK</Description>
</HTTPSStatus>
<RTSPStatus>
<StatusCode>0</StatusCode>
<Description>Connection OK</Description>
</RTSPStatus>
<UserActionRequired>
<ReconnectNeeded>false</ReconnectNeeded>
<Description>Reconnect is not needed</Description>
</UserActionRequired>
</VapixConnectionStatus>
<RemoteCamera>
<PtzFirmwareNeedsUpdate>false</PtzFirmwareNeedsUpdate>
</RemoteCamera>
</GetVapixStatusSuccess>
</RemoteCameraControlResponse>

GET remote URL​

Use getremoteurl.cgi to retrieve the remote access URL for the camera to enable access to its live feed or configuration interface.

Request

curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/remotecameracontrol/getremoteurl.cgi?schemaversion=1"

Response

<?xml version="1.0" encoding="utf-8" ?>
<RemoteCameraControlResponse SchemaVersion="1.0">
<GetRemoteUrlSuccess>https://192.168.0.91</GetRemoteUrlSuccess>
</RemoteCameraControlResponse>

GET port status​

Use getportstatus.cgi to check the status of specific protocol ports (HTTP, HTTPS, RTSP) on the remote camera to make sure they're open and functioning for camera communication.

Request

curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/remotecameracontrol/getportstatus.cgi?schemaversion=1&httpport=80&httpsport=443&rtspport=554"

Response

<?xml version="1.0" encoding="utf-8" ?>
<RemoteCameraControlResponse SchemaVersion="1.0">
<GetPortStatusSuccess>
<HTTPPortStatus>
<StatusCode>0</StatusCode>
<Description>Valid</Description>
</HTTPPortStatus>
<HTTPSPortStatus>
<StatusCode>0</StatusCode>
<Description>Valid</Description>
</HTTPSPortStatus>
<RTSPPortStatus>
<StatusCode>1</StatusCode>
<Description>Not valid</Description>
</RTSPPortStatus>
</GetPortStatusSuccess>
</RemoteCameraControlResponse>

Response structure​

All API responses use the RemoteCameraControlResponse root element as shown below:

<?xml version="1.0" encoding="utf-8"?>
<RemoteCameraControlResponse SchemaVersion="<decimal>"
Deprecated="<boolean>">
<!-- Response payload -->
</RemoteCameraControlResponse>
AttributeTypeRequiredDescription
SchemaVersiondecimalYesThe schema version used to format this response
DeprecatedbooleanNoIndicates if this schema version is deprecated. Default: false

Response types​

GeneralSuccess​

Generic success response for operations without return of a specific data.

<RemoteCameraControlResponse SchemaVersion="1.0">
<GeneralSuccess />
</RemoteCameraControlResponse>
GeneralError​

Standard error response containing error details.

<RemoteCameraControlResponse SchemaVersion="1.0">
<GeneralError>
<ErrorCode>20</ErrorCode>
<Description>Invalid request</Description>
</GeneralError>
</RemoteCameraControlResponse>
FieldTypeRequiredDescription
ErrorCodenonNegativeIntegerYesNumeric error code identifying the error type
DescriptionstringYesHuman-readable description of the error

See Error handling for a complete list of error codes.

SchemaVersionsSuccess​

Returns the list of supported schema versions.

<RemoteCameraControlResponse SchemaVersion="1.0">
<SchemaVersionsSuccess>
<SchemaVersion>
<VersionNumber>1.0</VersionNumber>
<Deprecated>false</Deprecated>
</SchemaVersion>
<SchemaVersion>
<VersionNumber>0.9</VersionNumber>
<Deprecated>true</Deprecated>
</SchemaVersion>
</SchemaVersionsSuccess>
</RemoteCameraControlResponse>
FieldTypeRequiredDescription
SchemaVersioncontainer—Container for each supported version (repeating)
SchemaVersion.VersionNumberdecimalYesVersion number, for example 1.0, 1.1, 2.0
SchemaVersion.DeprecatedbooleanNoWhether this version is deprecated. Default: false
GetVapixParamsSuccess​

Returns VAPIX connection parameters including network and protocol settings.

<RemoteCameraControlResponse SchemaVersion="1.0">
<GetVapixParamsSuccess>
<BaseConnectionParams>
<MACAddress>00:40:8C:12:34:56</MACAddress>
<Host>192.168.1.100</Host>
<DiscoveryMode>manual</DiscoveryMode>
</BaseConnectionParams>
<VapixConnectionParams>
<HTTPPort>80</HTTPPort>
<HTTPSPort>443</HTTPSPort>
<RTSPPort>554</RTSPPort>
<Username>admin</Username>
<Protocol>HTTPS</Protocol>
</VapixConnectionParams>
</GetVapixParamsSuccess>
</RemoteCameraControlResponse>

BaseConnectionParams fields:

FieldTypeRequiredDescription
MACAddressstringYesEthernet MAC address in the format XX:XX:XX:XX:XX:XX
HoststringYesHostname, IPv4 address, or IPv6 address
DiscoveryModestringYesAddress discovery mode: manual (manually configured) or auto (automatic discovery)

VapixConnectionParams fields:

FieldTypeRequiredDescription
HTTPPortnonNegativeIntegerYesHTTP port number, typically 80
HTTPSPortnonNegativeIntegerYesHTTPS port number, typically 443
RTSPPortnonNegativeIntegerYesRTSP port number, typically 554
UsernamestringYesAuthentication username
ProtocolstringYesPreferred protocol: HTTP, HTTPS (recommended), or HTTP(S)
GetVapixStatusSuccess​

Returns real-time status of VAPIX connections across all protocols.

<RemoteCameraControlResponse SchemaVersion="1.0">
<GetVapixStatusSuccess>
<BaseConnectionStatus>
<StatusCode>0</StatusCode>
<Description>Connection OK</Description>
</BaseConnectionStatus>
<VapixConnectionStatus>
<HTTPStatus>
<StatusCode>0</StatusCode>
<Description>Connection OK</Description>
</HTTPStatus>
<HTTPSStatus>
<StatusCode>0</StatusCode>
<Description>Connection OK</Description>
</HTTPSStatus>
<RTSPStatus>
<StatusCode>0</StatusCode>
<Description>Connection OK</Description>
</RTSPStatus>
<UserActionRequired>
<ReconnectNeeded>false</ReconnectNeeded>
<Description>Reconnect is not needed</Description>
</UserActionRequired>
</VapixConnectionStatus>
<RemoteCamera>
<PtzFirmwareNeedsUpdate>false</PtzFirmwareNeedsUpdate>
</RemoteCamera>
</GetVapixStatusSuccess>
</RemoteCameraControlResponse>

BaseConnectionStatus fields:

FieldTypeRequiredDescription
StatusCodenonNegativeIntegerYesOverall IP connection status code
DescriptionstringYesHuman-readable status description

VapixConnectionStatus fields:

FieldTypeRequiredDescription
HTTPStatusStatusTypeNoHTTP protocol connection status
HTTPSStatusStatusTypeNoHTTPS protocol connection status
RTSPStatusStatusTypeYesRTSP protocol connection status
UserActionRequiredUserActionRequiredTypeYesIndicates whether user intervention is needed

UserActionRequired fields:

FieldTypeRequiredDescription
ReconnectNeededbooleanYestrue if user action is required, false otherwise. Default: true
DescriptionstringYesDescription of the required action, if any.

RemoteCamera fields:

FieldTypeRequiredDescription
PtzFirmwareNeedsUpdatebooleanYesIndicates whether the remote PTZ firmware needs an update. true if an update is required, false if the firmware is up to date.

Status codes:

Status codeDescription
0Connection OK
1Probing
2No connection
3Not authorized
GetPortStatusSuccess​

Returns status information for individual protocol ports.

<RemoteCameraControlResponse SchemaVersion="1.0">
<GetPortStatusSuccess>
<HTTPPortStatus>
<StatusCode>0</StatusCode>
<Description>Valid</Description>
</HTTPPortStatus>
<HTTPSPortStatus>
<StatusCode>0</StatusCode>
<Description>Valid</Description>
</HTTPSPortStatus>
<RTSPPortStatus>
<StatusCode>1</StatusCode>
<Description>Not valid</Description>
</RTSPPortStatus>
</GetPortStatusSuccess>
</RemoteCameraControlResponse>
FieldTypeRequiredDescription
HTTPPortStatusStatusTypeNoHTTP port status
HTTPSPortStatusStatusTypeNoHTTPS port status
RTSPPortStatusStatusTypeNoRTSP port status

Status codes:

Status codeDescription
0Valid
1Not valid
GetRemoteUrlSuccess​

Returns the remote access URL for the camera.

<RemoteCameraControlResponse SchemaVersion="1.0">
<GetRemoteUrlSuccess>https://192.168.0.90</GetRemoteUrlSuccess>
</RemoteCameraControlResponse>

The value is a string containing the complete remote access URL.

See Error handling for a complete list of error codes.

CGI endpoints​

The remote camera control API is implemented as a set of CGI endpoints that return XML responses conforming to the RemoteCameraControl1.xsd schema.

Access control​

All API endpoints require authentication with the following access levels:

  • Viewer: Status and read-only operations (get VAPIX status, get port status, get remote URL)
  • Admin: Configuration operations (get and set parameters)

schemaversions.cgi​

Get a list of supported XML schema versions.

  • Security level: Viewer
  • Method: GET
curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/remotecameracontrol/schemaversions.cgi"

This CGI has no required arguments.

Response: See SchemaVersionsSuccess.

getvapixparams.cgi​

Retrieve current VAPIX connection parameters.

  • Security level: Admin
  • Method: GET
curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/remotecameracontrol/getvapixparams.cgi?schemaversion=1"

Request parameters:

ParameterDescription
schemaversionMajor version of the XML schema (required)

Success response

<?xml version="1.0" encoding="utf-8" ?>
<RemoteCameraControlResponse SchemaVersion="1.0">
<GetVapixParamsSuccess>
<BaseConnectionParams>
<MACAddress>00:40:8c:00:01:23</MACAddress>
<Host>169.254.0.123</Host>
<DiscoveryMode>auto</DiscoveryMode>
</BaseConnectionParams>
<VapixConnectionParams>
<HTTPPort>80</HTTPPort>
<HTTPSPort>443</HTTPSPort>
<RTSPPort>554</RTSPPort>
<Username>root</Username>
<Protocol>https</Protocol>
</VapixConnectionParams>
</GetVapixParamsSuccess>
</RemoteCameraControlResponse>

If an error occurs, a GeneralError response is returned. See GeneralError.

setvapixparams.cgi​

Configure VAPIX connection parameters.

  • Security level: Admin
  • Method: GET
curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/remotecameracontrol/setvapixparams.cgi?schemaversion=1&password=<password>"

Request parameters:

ParameterDescription
schemaversionMajor version of the XML schema (required)
hostHostname, IPv4 or IPv6 address (optional)
discoverymodeValues: manual, auto (optional)
httpportPort number 1–65535 (optional)
httpsportPort number 1–65535 (optional)
rtspportPort number 1–65535 (optional)
usernameUsername (optional)
protocolValues: http, https, or http(s) (optional)
passwordUser password (required when changing credentials)

Success response

<?xml version="1.0" encoding="utf-8" ?>
<RemoteCameraControlResponse SchemaVersion="1.0">
<GeneralSuccess />
</RemoteCameraControlResponse>

Error response

<?xml version="1.0" encoding="utf-8" ?>
<RemoteCameraControlResponse SchemaVersion="1.0">
<GeneralError>
<ErrorCode>20</ErrorCode>
<Description>Invalid request</Description>
</GeneralError>
</RemoteCameraControlResponse>

getvapixstatus.cgi​

Monitor the status of VAPIX connections.

  • Security level: Viewer
  • Method: GET
curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/remotecameracontrol/getvapixstatus.cgi?schemaversion=1"

Request parameters:

ParameterDescription
schemaversionMajor version of the XML schema (required)

Success response

<?xml version="1.0" encoding="utf-8" ?>
<RemoteCameraControlResponse SchemaVersion="1.0">
<GetVapixStatusSuccess>
<BaseConnectionStatus>
<StatusCode>0</StatusCode>
<Description>Connection OK</Description>
</BaseConnectionStatus>
<VapixConnectionStatus>
<HTTPStatus>
<StatusCode>0</StatusCode>
<Description>Connection OK</Description>
</HTTPStatus>
<HTTPSStatus>
<StatusCode>0</StatusCode>
<Description>Connection OK</Description>
</HTTPSStatus>
<RTSPStatus>
<StatusCode>0</StatusCode>
<Description>Connection OK</Description>
</RTSPStatus>
<UserActionRequired>
<ReconnectNeeded>false</ReconnectNeeded>
<Description>Reconnect is not needed</Description>
</UserActionRequired>
</VapixConnectionStatus>
<RemoteCamera>
<PtzFirmwareNeedsUpdate>false</PtzFirmwareNeedsUpdate>
</RemoteCamera>
</GetVapixStatusSuccess>
</RemoteCameraControlResponse>
Status codeDescription
0Connection OK
1Probing
2No connection
3Not authorized

If an error occurs, a GeneralError response is returned. See GeneralError.

getportstatus.cgi​

Retrieve the status of individual protocol ports on the remote camera. Provide the port numbers as request arguments. The response indicates whether each specified port is open on the remote camera.

  • Security level: Viewer
  • Method: GET
curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/remotecameracontrol/getportstatus.cgi?schemaversion=1&httpport=80&httpsport=443&rtspport=554"

Request parameters:

ParameterDescription
schemaversionMajor version of the XML schema (required)
httpportHTTP port number to check (optional)
httpsportHTTPS port number to check (optional)
rtspportRTSP port number to check (optional)

Success response

<?xml version="1.0" encoding="utf-8" ?>
<RemoteCameraControlResponse SchemaVersion="1.0">
<GetPortStatusSuccess>
<HTTPPortStatus>
<StatusCode>0</StatusCode>
<Description>Valid</Description>
</HTTPPortStatus>
<HTTPSPortStatus>
<StatusCode>0</StatusCode>
<Description>Valid</Description>
</HTTPSPortStatus>
<RTSPPortStatus>
<StatusCode>1</StatusCode>
<Description>Not valid</Description>
</RTSPPortStatus>
</GetPortStatusSuccess>
</RemoteCameraControlResponse>
Status codeDescription
0Valid
1Not valid

If an error occurs, a GeneralError response is returned. See GeneralError.

getremoteurl.cgi​

Retrieve the URL for the remote camera.

  • Security level: Viewer
  • Method: GET
curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/remotecameracontrol/getremoteurl.cgi?schemaversion=1"

Request parameters:

ParameterDescription
schemaversionMajor version of the XML schema (required)

Success response

<?xml version="1.0" encoding="utf-8" ?>
<RemoteCameraControlResponse SchemaVersion="1.0">
<GetRemoteUrlSuccess>https://192.168.0.90</GetRemoteUrlSuccess>
</RemoteCameraControlResponse>

If an error occurs, a GeneralError response is returned. See GeneralError.

Error handling​

Error codeDescription
10An error occurred while processing the request
20Invalid request
40Specified version not supported

Error response example:

<RemoteCameraControlResponse SchemaVersion="1.0">
<GeneralError>
<ErrorCode>10</ErrorCode>
<Description>Invalid Protocol</Description>
</GeneralError>
</RemoteCameraControlResponse>

Version management​

The Remote camera control API uses semantic versioning with major and minor version numbers:

  • Major version changes break backwards compatibility and change the namespace.
  • Minor version changes maintain backwards compatibility.
  • Schema versions can be marked as deprecated before removal.
  • Use schemaversions.cgi to discover supported versions.

Schema​

The API responses conform to the RemoteCameraControl1.xsd schema, available at http://www.axis.com/vapix/http_cgi/RemoteCameraControl1.xsd.

References​

Remote PT Coordinate Calibration API​

Description​

VAPIX┬о Remote PT coordinate calibration API is used to calibrate the pan and tilt (PT) coordinates in a remote Axis PTZ camera that is connected to the local Axis product. The local Axis product is typically AXIS Q6000-E, see Integrating AXIS Q6000-E.

Calibration translates the coordinate spaces between the two cameras and is required for the Axis product to be able to accurately control the remote camera's PTZ movements. After calibration, an operator can control the remote PTZ camera from the local Axis product by clicking in the local camera's image or by using area zoom. The remote PTZ camera will be redirected to and zoom in on the position the operator clicked on.

The Remote PT coordinate calibration API provides the following functionality:

  • Start calibration.
  • Stop (abort) calibration.
  • Select calibration targets.
  • Match calibration targets in local and remote camera.
  • Save calibration data.

Identification​

The Remote PT coordinate calibration API is supported if:

  • Property: Properties.API.HTTP.Version=3
  • Property: Properties.PTRemoteCalibration.PTRemoteCalibration=yes

Calibrate a remote PTZ camera​

The following is an overview of the steps required to calibrate a remote PTZ camera using the API.

Step 1: Start calibration

Start calibration by sending the following request to the local Axis product. The request below starts calibration using camera head two.

Request

curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/ptremotecalibration/start.cgi?camera=2"

For more information about the request, see Start calibration.

Step 2: Select first calibration target

Select the first calibration target. The calibration target is a point in the image from the camera specified in the /axis-cgi/ptremotecalibration/start.cgi request. Select a point in the image that is easy to distinguish as the remote PTZ camera should be directed to the same point. The point should be specified as normalized x and y coordinates.

Request

curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/ptremotecalibration/selecttarget.cgi?x=0.75&y=0.25"

For more information about the request, see Select calibration target.

Step 3: Position the remote PTZ camera

Position the remote PTZ camera to center on the same point as the camera in step 2.

For information about how to control a PTZ camera using VAPIX, see Pan/tilt/zoom API.

  • Use /axis-cgi/com/ptz.cgi?center=<x>,<y> to center the camera at point <x>,<y>.
  • Use /axis-cgi/com/ptz.cgi?query=position to retrieve the PTZ camera's current position.

Step 4: Save the remote position

On the local Axis product, use the /axis-cgi/ptremotecalibration/ontarget.cgi request to inform the local Axis product about the remote PTZ camera's position. If the local Axis product keeps track of the remote PTZ camera's position, the request can be sent without arguments.

Request

curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/ptremotecalibration/ontarget.cgi"

If the local Axis product does not keep track of the remote PTZ camera's position, the remote camera's pan and tilt coordinates must be specified in the request:

Request

curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/ptremotecalibration/ontarget.cgi?pan=124.7&tilt=44.2"

For more information about the request, see On calibration target.

Step 5: Select additional calibration targets.

Select the second calibration target:

Request

curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/ptremotecalibration/selecttarget.cgi?x=0.25&y=0.25"

The response to the second, third, etc /axis-cgi/ptremotecalibration/selecttarget.cgi request returns approximate PT coordinates for the remote PTZ camera.

Response

HTTP/1.0 200 OK
Content-Type: text/xml

<?xml version="1.0" encoding="utf-8"?>
<PTRemoteCalibrationResponse SchemaVersion="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.axis.com/vapix/http_cgi/PTRemoteCalibration1.xsd">
<SelectTargetSuccess>
<Pan>-145.6</Pan>
<Tilt>-36.7</Tilt>
</SelectTargetSuccess>
</PTRemoteCalibrationResponse>

The coordinates in the response can be used to help position the remote PTZ:

Request

curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/com/ptz.cgi?pan=-145.6&tilt=-36.7"

When the remote PTZ camera is centered on the calibration target, save the remote position:

Request

curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/ptremotecalibration/ontarget.cgi"

Continue to select calibration targets. It is recommended to use at least 4 points.

Step 6: Save calibration

When enough calibration targets have been set, the calibration data must be saved. During saving, a coordinate transformation curve is created and the calibration process is finalized.

Request

curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/ptremotecalibration/save.cgi"

The request returns an error if calibration is not possible, for example if too few points were selected or if one or more calibration points were too poorly matched between the local camera and the remote camera. If so, restart the calibration process using /axis-cgi/ptremotecalibration/start.cgi and add calibration targets as above.

Step 7: Repeat

Repeat the calibration process for the remaining camera heads until all have been calibrated.

Start calibration​

Use /axis-cgi/ptremotecalibration/start.cgi to start calibration.

Request

  • Security level: Administrator
  • Method: GET/POST

Syntax:

curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/ptremotecalibration/start.cgi?<argument>=<value>[&=<value>]"

With the following query string parameters:

ParameterValid valuesDescription
schemaversion=<integer>[.<integer>]IntegersThe version of the XML Schema to use for the response.The schema version should be in the form major.minor where major is the major version and minor is the minor version. The major version is required. If the minor version is not specified, the latest minor version will be used.
camera=<integer>1,2, .. n (Product dependent. The number of supported cameras is given by parameter ImageSource.NbrOfSources)The camera to use for calibration.Default: 1

Response

Responses to /axis-cgi/ptremotecalibration/start.cgi

The XML schema is available at http://www.axis.com/vapix/http_cgi/PTRemoteCalibration1.xsd

Success

If the calibration was started successfully, a GeneralSuccess response is returned. See General success.

Error

If the calibration process could not be started, a GeneralError response is returned. See General error.

Error codes: 10, 20, 40, 50

Abort calibration​

Use /axis-cgi/ptremotecalibration/abort.cgi to abort an ongoing calibration. All unsaved data will be lost.

Request

  • Security level: Administrator
  • Method: GET/POST

Syntax:

curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/ptremotecalibration/abort.cgi?<argument>=<value>"

With the following query string parameters:

ParameterValid valuesDescription
schemaversion=<integer>[.<integer>]IntegersThe version of the XML Schema to use for the response.The schema version should be in the form major.minor where major is the major version and minor is the minor version. The major version is required. If the minor version is not specified, the latest minor version will be used.

Response

Responses to /axis-cgi/ptremotecalibration/abort.cgi

The XML schema is available at http://www.axis.com/vapix/http_cgi/PTRemoteCalibration1.xsd

Success

If calibration was aborted successfully, a GeneralSuccess response is returned. See General success.

Error

If an error occurred, a GeneralError response is returned. See General error.

Error codes: 10, 20, 40, 54

Select calibration target​

Use /axis-cgi/ptremotecalibration/selecttarget.cgi to select a calibration target in the image from the local Axis product.

The calibration target should be specified as normalized x and y coordinates of a point in the image. Point (-1.0, -1.0) is the bottom left corner of the image, point (0.0, 0.0) is the center of the image and point (1.0, 1.0) is the upper right corner. Do not change the camera's aspect ratio before calibration. The coordinates in the request are interpreted as normalized on an image with the same aspect ratio as the camera's default resolution.

After sending a /axis-cgi/ptremotecalibration/selecttarget.cgi request, position the remote PTZ camera to center on the same point and then send a /axis-cgi/ptremotecalibration/ontarget.cgi request to the local Axis product. See Calibrate a remote PTZ camera.

If sending multiple /axis-cgi/ptremotecalibration/selecttarget.cgi requests before an /axis-cgi/ptremotecalibration/ontarget.cgi request, the coordinates in the last /axis-cgi/ptremotecalibration/selecttarget.cgi request will be used for calibration.

The first /axis-cgi/ptremotecalibration/selecttarget.cgi request returns a GeneralSuccess. Subsequent /axis-cgi/ptremotecalibration/selecttarget.cgi requests return an approximation of a matching pan/tilt pair in the remote PTZ camera that can be used to make it easier to position the remote PTZ camera.

Request

  • Security level: Administrator
  • Method: GET/POST

Syntax:

curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/ptremotecalibration/selecttarget.cgi?<argument>=<value>[&=<value>...]"

With the following query string parameters:

ParameterValid valuesDescription
schemaversion=<integer>[.<integer>]IntegersThe version of the XML Schema to use for the response.The schema version should be in the form major.minor where major is the major version and minor is the minor version. The major version is required. If the minor version is not specified, the latest minor version will be used.
x=<double>Normalized coordinateThe x coordinate using the local Axis product's coordinate system. For more information, see Select calibration target.
y=<double>Normalized coordinateThe y coordinate using the local Axis product's coordinate system.

Response

Responses to /axis-cgi/ptremotecalibration/selecttarget.cgi

The XML schema is available at http://www.axis.com/vapix/http_cgi/PTRemoteCalibration1.xsd

Success (first calibration target)

The first successful request in each calibration process returns a GeneralSuccess response. See General success.

Success (second, third, etc target)

The second, third, etc successful request returns approximate pan and tilt coordinates for the remote PTZ camera.

  • HTTP Code: 200 OK
  • Content-Type: text/xml

Body:

<?xml version="1.0" encoding="utf-8" ?>
<PTRemoteCalibrationResponse
SchemaVersion="1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.axis.com/vapix/http_cgi/PTRemoteCalibration1.xsd">
<SelectTargetSuccess>
<Pan>[pan coordinate]</Pan>
<Tilt>[tilt coordinate]</Tilt>
</SelectTargetSuccess>
</PTRemoteCalibrationResponse>

Supported elements, attributes and values:

ElementDescriptionAttributeDescription
PTRemoteCalibrationResponseContains the response to the CGI request.SchemaVersionThe version of the XML Schema that the response is formatted according to.
Deprecatedtrue = SchemaVersion is deprecated and the response should not be used. false = SchemaVersion is not deprecated.
SelectTargetSuccessSuccessful response.
PanApproximate value for the remote PTZ camera's pan coordinate.Unit: degrees.
TiltApproximate value for the remote PTZ camera's tilt coordinate.Unit: degrees.

Error

If no calibration target is selected or if an error occurred, a GeneralError response is returned. See General error.

Error codes: 10, 20, 40, 54

On calibration target​

Use /axis-cgi/ptremotecalibration/ontarget.cgi to inform the local Axis product that the remote PTZ camera is positioned at the point selected as calibration target.

Request

  • Security level: Administrator
  • Method: GET/POST

Syntax:

curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/ptremotecalibration/ontarget.cgi?<argument>=<value>[&=<value>...]"

With the following query string parameters:

ParameterValid valuesDescription
schemaversion=<integer>[.<integer>]IntegersThe version of the XML Schema to use for the response.The schema version should be in the form major.minor where major is the major version and minor is the minor version. The major version is required. If the minor version is not specified, the latest minor version will be used.
pan=<double>Product-dependent(1)Pan coordinate (in degrees) of the remote PTZ camera. If not specified, the coordinate is read from local status.
tilt=<double>Product-dependent(2)Tilt coordinate (in degrees) of the remote PTZ camera. If not specified, the coordinate is read from local status.

Response

Responses to /axis-cgi/ptremotecalibration/ontarget.cgi

The XML schema is available at http://www.axis.com/vapix/http_cgi/PTRemoteCalibration1.xsd

Success

If the PTZ camera's position and the calibration target could be matched, a GeneralSuccess response is returned. See General success.

Error

If the PTZ camera's position and the calibration target could not be matched, or if an error occurred, a GeneralError response is returned. See General error.

Error codes: 10, 20, 40, 52, 53

Save calibration​

Use /axis-cgi/ptremotecalibration/save.cgi to save the calibration data. The save request finalizes the coordinate translation and stops the calibration process.

Saving is the last step in the calibration process. See Calibrate a remote PTZ camera. The save request saves the calibration data from the /axis-cgi/ptremotecalibration/selecttarget.cgi and /axis-cgi/ptremotecalibration/ontarget.cgi requests in the ongoing calibration process. After saving, the calibration sequence is stopped. Use /axis-cgi/ptremotecalibration/start.cgi to start a new process.

Request

  • Security level: Administrator
  • Method: GET/POST

Syntax:

curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/ptremotecalibration/save.cgi?<argument>=<value>"

With the following query string parameters:

ParameterValid valuesDescription
schemaversion=<integer>[.<integer>]IntegersThe version of the XML Schema to use for the response.The schema version should be in the form major.minor where major is the major version and minor is the minor version. The major version is required. If the minor version is not specified, the latest minor version will be used.

Response

Responses to /axis-cgi/ptremotecalibration/save.cgi

The XML schema is available at http://www.axis.com/vapix/http_cgi/PTRemoteCalibration1.xsd

Success

If the calibration data was saved and the calibration process was stopped successfully, a GeneralSuccess response is returned. See General success.

Error

If the coordinate translation is not good enough or if an error occurred, a GeneralError response is returned. See General error.

Error codes: 10, 20, 40, 51, 54

Get calibration information​

Use /axis-cgi/ptremotecalibration/getinformation.cgi to retrieve information about an ongoing calibration.

Request

  • Security level: Administrator
  • Method: GET/POST

Syntax:

curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/ptremotecalibration/getinformation.cgi?<argument>=<value>"

With the following query string parameters:

ParameterValid valuesDescription
schemaversion=<integer>[.<integer>]IntegersThe version of the XML Schema to use for the response.The schema version should be in the form major.minor where major is the major version and minor is the minor version. The major version is required. If the minor version is not specified, the latest minor version will be used.

Response

Responses to /axis-cgi/ptremotecalibration/getinformation.cgi

The XML schema is available at http://www.axis.com/vapix/http_cgi/PTRemoteCalibration1.xsd

Success

A successful request returns information about the ongoing calibration.

  • HTTP Code: 200 OK
  • Content-Type: text/xml

Body:

<?xml version="1.0" encoding="utf-8" ?>
<PTRemoteCalibrationResponse
SchemaVersion="1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.axis.com/vapix/http_cgi/PTRemoteCalibration1.xsd">
<GetInformationSuccess>
<Camera>[camera]</Camera>
<CurrentTarget>
<X>[x coordinate]</X>
<Y>[y coordinate]</Y>
</CurrentTarget>
</GetInformationSuccess>
</PTRemoteCalibrationResponse>

Supported elements, attributes and values:

ElementDescriptionAttributeDescription
PTRemoteCalibrationResponseContains the response to the CGI request.SchemaVersionThe version of the XML Schema that the response is formatted according to.
Deprecatedtrue = SchemaVersion is deprecated and the response should not be used. false = SchemaVersion is not deprecated.
GetInformationSuccessSuccessful request
CameraThe local camera (camera head) used in the calibration process.
CurrentTargetThe current calibration target.
XNormalized x pixel coordinate of current calibration target.
YNormalized y pixel coordinate of current calibration target.

Error

If an error occurred, a GeneralError response is returned. See General error.

Error codes: 10, 20, 40, 54

Get calibration status​

Use /axis-cgi/ptremotecalibration/iscalibrated.cgi to retrieve information about calibration status. The request returns a list of all cameras and whether they are calibrated or not.

Request

  • Security level: Administrator
  • Method: GET/POST

Syntax:

curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/ptremotecalibration/iscalibrated.cgi?<argument>=<value>"

With the following query string parameters:

ParameterValid valuesDescription
schemaversion=<integer>[.<integer>]IntegersThe version of the XML Schema to use for the response.The schema version should be in the form major.minor where major is the major version and minor is the minor version. The major version is required. If the minor version is not specified, the latest minor version will be used.

Response

Responses to /axis-cgi/ptremotecalibration/iscalibrated.cgi

The XML schema is available at http://www.axis.com/vapix/http_cgi/PTRemoteCalibration1.xsd

Success

A successful request returns information about the cameras and their calibration status.

  • HTTP Code: 200 OK
  • Content-Type: text/xml

Body:

<?xml version="1.0" encoding="utf-8" ?>
<PTRemoteCalibrationResponse
SchemaVersion="1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.axis.com/vapix/http_cgi/PTRemoteCalibration1.xsd">
<IsCalibratedSuccess>
<Camera>
<Id>[camera]</Id>
<Calibrated>[0,1]</Calibrated>
</Camera>
...
</IsCalibratedSuccess>
</PTRemoteCalibrationResponse>

Supported elements, attributes and values:

ElementDescriptionAttributeDescription
PTRemoteCalibrationResponseContains the response to the CGI request.SchemaVersionThe version of the XML Schema that the response is formatted according to.
Deprecatedtrue = SchemaVersion is deprecated and the response should not be used. false = SchemaVersion is not deprecated.
IsCalibratedSuccessSuccessful request
CameraInformation about one camera.
IdThe camera number.
Calibrated0 = Camera is not calibrated. 1 = Camera is calibrated.

Error

If an error occurred, a GeneralError response is returned. See General error.

Error codes: 10, 20, 40, 54

XML schema versions​

Use /axis-cgi/ptremotecalibration/schemaversions.cgi to return a list of supported versions of the XML schema for the Remote PT coordinate calibration API and whether the schemas are deprecated or not.

Request

  • Security level: Administrator
  • Method: GET/POST

Syntax:

curl --request GET \
--anyauth \
--user "<username>:<password>" \
"http://<servername>/axis-cgi/ptremotecalibration/schemaversions.cgi"

This CGI has no arguments.

Response

Responses to /axis-cgi/ptremotecalibration/schemaversions.cgi

The XML schema is available at http://www.axis.com/vapix/http_cgi/PTRemoteCalibration1.xsd

  • HTTP Code: 200 OK
  • Content-Type: text/xml

Body:

<?xml version="1.0" encoding="utf-8" ?>
<PTRemoteCalibrationResponse
SchemaVersion="1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.axis.com/vapix/http_cgi/PTRemoteCalibration1.xsd">
<SchemaVersionSuccess>
<SchemaVersion>
<VersionNumber>[major1].[minor1]</VersionNumber>
<Deprecated>[true/false]</Deprecated>
</SchemaVersion>
[...]
</SchemaVersionSuccess>
</PTRemoteCalibrationResponse>

Supported elements, attributes and values:

ElementDescriptionAttributeDescription
PTRemoteCalibrationResponseContains the response to the CGI request.SchemaVersionThe version of the XML Schema that the response is formatted according to.
Deprecatedtrue = SchemaVersion is deprecated and the response should not be used. false = SchemaVersion is not deprecated.
SchemaVersionSuccessSuccessful request
SchemaVersionSupported version of the XML Schema.
VersionNumberThe version number of the XML Schema in the form [major].[minor] Example: 1.0
DeprecatedIf true, this version of the XML Schema is deprecated and should not be used. Default: false

General success​

General success response in Remote PT coordinate calibration API.

The XML schema is available at http://www.axis.com/vapix/http_cgi/PTRemoteCalibration1.xsd

  • HTTP Code: 200 OK
  • Content-Type: text/xml

Body:

<?xml version="1.0" encoding="utf-8" ?>
<PTRemoteCalibrationResponse
SchemaVersion="1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.axis.com/vapix/http_cgi/PTRemoteCalibration1.xsd">
<GeneralSuccess />
</PTRemoteCalibrationResponse>

Supported elements, attributes and values:

ElementDescriptionAttributeDescription
PTRemoteCalibrationResponseContains the response to the CGI request.SchemaVersionThe version of the XML Schema that the response is formatted according to.
Deprecatedtrue = SchemaVersion is deprecated and the response should not be used. false = SchemaVersion is not deprecated.
GeneralSuccessSuccessful request

General error​

General error response in Remote PT coordinate calibration API.

The XML schema is available at http://www.axis.com/vapix/http_cgi/PTRemoteCalibration1.xsd

  • HTTP Code: 200 OK
  • Content-Type: text/xml

Body:

<?xml version="1.0" encoding="utf-8" ?>
<PTRemoteCalibrationResponse
SchemaVersion="1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.axis.com/vapix/http_cgi/PTRemoteCalibration1.xsd">
<GeneralError>
<ErrorCode>[error code]</ErrorCode>
<Description>[description]</Description>
</GeneralError>
</PTRemoteCalibrationResponse>

Supported elements, attributes and values:

ElementDescriptionAttributeDescription
PTRemoteCalibrationResponseContains the response to the CGI request.SchemaVersionThe version of the XML Schema that the response is formatted according to.
Deprecatedtrue = SchemaVersion is deprecated and the response should not be used. false = SchemaVersion is not deprecated.
GeneralErrorError
ErrorCodeA numeric error code. See table below.
ErrorDescriptionDescription of the error
Error codeDescriptionCGI request
10Error while processing the request.All
20Invalid request.All
40Specified version is not supported.All
50Calibration is already ongoing. It is not possible to start a new calibration./axis-cgi/ptremotecalibration/start.cgi
51A satisfying coordinate matching could not be found./axis-cgi/ptremotecalibration/save.cgi
52The pan/tilt coordinates and the selected pixel coordinates (x and y) could not be matched./axis-cgi/ptremotecalibration/ontarget.cgi
53No pixel coordinates are selected./axis-cgi/ptremotecalibration/ontarget.cgi
54No calibration is ongoing./axis-cgi/ptremotecalibration/abort.cgi, /axis-cgi/ptremotecalibration/getinformation.cgi, /axis-cgi/ptremotecalibration/ontarget.cgi, /axis-cgi/ptremotecalibration/save.cgi, /axis-cgi/ptremotecalibration/selecttarget.cgi

Footnotes​

  1. Values are product dependent. Check parameters PTZ.Limit.MaxPan and PTZ.Limit.MinPan. ↩

  2. Values are product dependent. Check parameters PTZ.Limit.MaxTilt and PTZ.Limit.MinTilt. ↩