消控宝算法配置服务
云端算法配置
服务描述
调用该接口,给设备配置云端算法。
API定义
path | 版本 |
/fire/device/algorithm/save | 0.0.1 |
请求参数
参数 | 类型 | 是否必填 | 描述 |
productKey | String | 是 | 产品key。 |
deviceName | String | 是 | 设备名称。 |
algorithms | List | 否 | 算法配置。 |
-algorithmName | String | 是 | 算法类型,见1.2.3支持类型。 |
-pendingTime | Integer | 否 | 报警触发时长,单位秒,精度为分钟级,范围300~86400,不填默认900 |
-runningTime | String | 否 | 算法运行时间,不填默认24小时运行,格式:00:00-23:59。 |
-pendingNum | Integer | 否 | 仅人群聚集需要,报警人数阈值,画面中大于等于人数就会报警。 |
- normalizeRoi | String | 否 | 归一化画框坐标点集合JSON字符串,顺时针排列,不填默认全框。二维数组坐标是横坐标的归一化数值,右边是纵坐标的归一化数值。 |
返回参数
参数 | 类型 | 描述 |
code | Integer | 产品key。 |
id | String | Request id。 |
message | String | 结果描述。 |
请求示例
{
"request": {
"apiVer": "0.0.1"
},
"params": {
"productKey":"xxxwwe3wwq2",
"deviceName":"3de3dd23xsd",
"algorithms": [
{
"algorithmName": "AFK",
"pendingTime": 900,
"runningTime": "00:00-23:59",
"roiPosition":
"[{\"y\":714.705174488568,\"x\":696.2214199759326},{\"y\":619.2057761732851,\"x\":705.4632972322503},{\"y\":625.3670276774969,\"x\":898.0024067388689},{\"y\":716.245487364621,\"x\":898.0024067388689}]"
}
]
},
"version": "1.0"
}
返回示例
{
"code": 200,
"message": "success",
"data": true
"id": "246da69e-40ad-4f44-955e-ac880f9867d7"
}
边端算法配置
服务描述
调用该接口,给设备配置边端算法。
API定义
path | 版本 |
/fire/device/algorithm/edge/save | 0.0.1 |
请求参数
参数 | 类型 | 是否必填 | 描述 |
productKey | String | 是 | 产品key。 |
deviceName | String | 是 | 设备名称。 |
algorithms | List | 否 | 算法配置。 |
-algorithmName | String | 是 | 算法类型,见1.2.3支持类型。 |
-pendingTime | Integer | 否 | 报警触发时长,单位秒,精度为分钟级,范围300~86400,不填默认900。 |
-runningTime | String | 否 | 算法运行时间,不填默认24小时运行,格式:00:00-23:59。 |
-pendingNum | Integer | 否 | 仅人群聚集需要,报警人数阈值,画面中大于等于人数就会报警。 |
- normalizeRoi | String | 否 | 归一化画框坐标点集合JSON字符串,顺时针排列,不填默认全框。二维数组坐标是横坐标的归一化数值,右边是纵坐标的归一化数值。 |
返回参数
参数 | 类型 | 描述 |
code | Integer | 产品key |
id | String | Request id |
message | String | 结果描述 |
请求示例
{
"request": {
"apiVer": "0.0.1"
},
"params": {
"productKey":"xxxwwe3wwq2",
"deviceName":"3de3dd23xsd",
"algorithms": [{
"algorithmName": "AFK",
"pendingTime": 900,
"runningTime": "00:00-23:59",
"normalizeRoi":
"[[{\"point\":[0.011479591836734694,0.010714285714285714]},{\"point\":[0.011479591836734694,0.9982142857142857]},{\"point\":[0.9987244897959183,0.9982142857142857]},{\"point\":[0.9987244897959183,0.010714285714285714]}]]"
}
]
},
"version": "1.0"
}
返回示例
{
"code": 200,
"message": "success",
"id": "246da69e-40ad-4f44-955e-ac880f9867d7"
}
- 本页导读