Get

Function

This API is used to get AI > Cross Counting Scenario > Map configuration parameters.

Request Message

Parameter Description

Table 1

ParameterRangeTypeDescription
GroupIdintNeed to search the group ID of the Map

Sample:

POST /API/AI/Scenario/CC/MapConfig/Get HTTP/1.1
{
    "data": {
        "GroupId": 0
    }
}

Response Message

Parameter Description

Table 2

ParameterRangeTypeDescription
GroupIdintgroup ID
RefWidth0~1920intcoordinate reference width
RefHeight0~1080intcoordinate reference height
CamPosObject arraycamera position
JSON show as follow Table 3
MapImage"base64(imgData)"
0~5 * 1024 * 1024
stringMap image, only supports png/jpg/bmp format

Table 3

ParameterRangeTypeDescription
ChnIdintchannel number
XPosintThe X-axis coordinate located in the map
YPosintThe Y-axis coordinate on the map

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "data": {
        "RefWidth": 1920,
		"RefHeight": 1080,
		"CamPos": [
            {
                "ChnId": 0,
                "XPos": 362,
                "YPos": 936
            },
            {
                "ChnId": 3,
                "XPos": 1830,
                "YPos": 289
            },
			......
        ],
		"MapImage": "base64"
    }
}

Error Code

See Response Messages Body and Common error_code for more information.