Documentation for Axxon One 1.0.

Previous page Manage device templates using gRPC API methods  Manage detection tools using gRPC API methods Next page

POST http://IP-address:port/prefix/grpc

Get current mode

Request body:

{
"method":"axxonsoft.bl.ptz.TagAndTrackService.ListTrackers",
"data": {
	"access_point":"hosts/Server1/DeviceIpint.1/Observer.0"
	}
}

where access_point is taken from the response to the ListCameras request in the tag_and_track parameter group (see Get video cameras list and their parameters using gRPC API methods (DomainService)).

Response example:

{
    "mode": "TAG_AND_TRACK_EVENT_TYPE_AUTOMATIC",
    "trackers": []
}

Change PTZ mode

Request body:

{
"method":"axxonsoft.bl.ptz.TagAndTrackService.SetMode",
"data": {
	"access_point":"hosts/Server1/DeviceIpint.1/Observer.0",
	"mode":"2"
	}
}

where the mode parameter value defines the PTZ control mode (see Setting PTZ mode for Tag & Track Pro):

0 − disabled (TAG_AND_TRACK_EVENT_TYPE_OFF),

1 − manual (TAG_AND_TRACK_EVENT_TYPE_MANUAL),

2 − automatic (TAG_AND_TRACK_EVENT_TYPE_AUTOMATIC),

3 − user priority (TAG_AND_TRACK_EVENT_TYPE_USER_PRIORITY),

4 − manual PTZ control (TAG_AND_TRACK_EVENT_TYPE_USER_PRIORITY_MANUAL).

  • No labels