Last Updated on : 2023-06-21 07:13:00download
Query the configuration information of the linked foot traffic statistics devices under the specified asset. Currently, you can only query the configuration of the region of interest.
GET: /v1.0/iot-03/passenger-flows/assets/assigned-devices/{device_id}/configs
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
device_id | String | uri | true | The device ID. |
Parameter name | Type | Description |
---|---|---|
result | AssignDeviceConfig | The returned result. |
Description of result
Parameter name | Type | Description |
---|---|---|
image_width | Integer | The image width in pixels. |
image_height | Integer | The image height in pixels. |
areas | List |
The region of interest. |
Description of areas
Parameter name | Type | Description |
---|---|---|
type | Integer | The type of the region of interest. Valid values:
|
points | List |
The information about a specific point.Establish a coordinate system by using the top left corner of the image as the zero point, the width as the x-axis, and the height as the y-axis. Unit: in pixels. |
in | String | The direction of entering the store. Valid values:
|
out | String | The direction of leaving the store. Valid values:
|
Description of points
Parameter name | Type | Description |
---|---|---|
x | Integer | The point of the latitudinal coordinate. |
y | Integer | The point of the longitudinal coordinate. |
GET: /v1.0/iot-03/passenger-flows/assets/assigned-devices/111****/configs
{
"result": {
"areas": [
{
"type": 1,
"points": [
{
"x": 0,
"y": 0
},
{
"x": 1920,
"y": 0
},
{
"x": 1920,
"y": 1080
},
{
"x": 0,
"y": 1080
}
]
},
{
"type": 2,
"points": [
{
"x": 0,
"y": 0
},
{
"x": 1920,
"y": 0
},
{
"x": 1920,
"y": 1080
},
{
"x": 0,
"y": 1080
}
]
}
],
"image_width": 1920,
"image_height": 1080
},
"t": 1111111111111,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback