云服务 API 参考行业场景垂直行业解决方案客流统计客流统计查询资产下已关联的客流设备的配置信息

查询资产下已关联的客流设备的配置信息

更新时间:2023-06-21 07:13:00下载pdf

本文介绍查询资产下已关联的客流设备的配置信息的 API。

接口描述

查询资产下已关联的客流设备的配置信息,目前仅支持识别区域配置的查询。

接口地址

GET: /v1.0/iot-03/passenger-flows/assets/assigned-devices/{device_id}/configs

请求参数

参数名 类型 参数位置 是否必填 说明
device_id String uri true 设备 ID

返回参数

参数名 类型 说明
result AssignDeviceConfig

result 说明

参数名 类型 说明
image_width Integer 图像宽度,单位:像素
image_height Integer 图像高度,单位:像素
areas List 识别区域

areas 说明

参数名 类型 说明
type Integer 区域类型:
  • 1:进店区域
  • 2:过店区域
points List 点位信息:以图像左上角为零点,宽为x轴,高为y轴建立坐标系,单位:像素
in String 进店方向:
  • top:向上
  • down:向下
  • left:向左
  • right:向右
out String 出店方向:
  • top:向上
  • down:向下
  • left:向左
  • right:向右

points 说明

参数名 类型 说明
x Integer 横坐标点位
y Integer 纵坐标点位

请求示例

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 }

错误码

参考 错误码