区域关注度配置
POST
https://api2.hik-cloud.com/api/v1/device/isapi/intelligent/personQueueDetection/config
设置热度设备的区域关注度配置,建议先获取配置,然后修改所需的参数后再进行设置
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api2.hik-cloud.com/api/v1/device/isapi/intelligent/personQueueDetection/config' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceSerial": "C40022136",
"config": {
"PersonQueueDetectionInfo": {
"countingEnabled": true,
"queuetimeEnabled": true,
"confidence": null,
"minoffset": null,
"staytime": null,
"minsize": null,
"RuleInfo": [
{
"ruleID": 1,
"ruleName": "区域1",
"alarmIntervalTime": 300,
"personQueueCounting": {
"alarmCount": 8
},
"personQueueTime": {
"alarmTime": 300,
"Time": null
},
"regionColor": "yellow",
"osdoverlayEnabled": true,
"region": [
{
"x": 0.086,
"y": 0.114
},
{
"x": 0.836,
"y": 0.128
},
{
"x": 0.827,
"y": 0.883
},
{
"x": 0.078,
"y": 0.866
}
]
}
]
}
}
}'
响应示例响应示例
{
"code": 200,
"message": "操作成功"
}
请求参数
Header 参数
Authorization
string
可选
默认值:
Bearer {{access_token}}
Body 参数application/json
返回响应
修改于 2022-05-27 05:49:03