开发者平台 / 视频管理系统(VMS)/API功能接口定义/设备消息透传
4.13.9 电瓶车检测参数配置
4.13.9.1 增加侦测区域
Request: { "method": "do", "ebike_detection": { "add_regions": { "region_info": // "chn2_region_info"(对应多sensor请求,第一个镜头不需要带chnx前缀) [ { "id": "1", "pt1_x":"3000", "pt1_y":"3500", "pt2_x":"2000", "pt2_y":"5500", "pt3_x":"3500", "pt3_y":"8000", "pt4_x":"4875", "pt4_y":"4000", "position_pan": "0.200000", "position_tilt": "-0.700000", "position_zoom": "0.100000" } ] } } } Response: { "error_code": 0 }
请求参数说明:
参数 | 类型 | 说明 |
---|---|---|
id | 字符串 | 区域编号 |
pt1_x | 整型 | 区域矩形,左上角点位的x坐标 |
pt1_y | 整型 | 区域矩形,左上角点位的y坐标 |
pt2_x | 整型 | 区域矩形,右上角点位的x坐标 |
pt2_y | 整型 | 区域矩形,右上角点位的y坐标 |
pt3_x | 整型 | 区域矩形,右下角点位的x坐标 |
pt3_y | 整型 | 区域矩形,右下角点位的y坐标 |
pt4_x | 整型 | 区域矩形,左下角点位的x坐标 |
pt4_y | 整型 | 区域矩形,左下角点位的y坐标 |
position_pan | 其他 | 设备当前的水平位置信息,当module_spec字段中包含"PTZ"或"motor"字段时有该字段。 |
position_tilt | 其他 | 设备当前的垂直位置信息,当module_spec字段中包含"PTZ"或"motor"字段时有该字段。 |
position_zoom | 其他 | 设备当前的缩放倍数信息,当module_spec字段中包含"PTZ"字段并且PTZ Capability 包含“position_zoom_range”字段时有该字段。 |
4.13.9.2 设置电瓶车检测参数
Request: { "method": "set", "ebike_detection": { "detection": { "enabled": "on", "threshold": "0", "percentage": "51", "constant_alarm_enabled": "on", "confidence": "20", "filter_level": "1", "bike_enabled": "on", "end_delay": "5" } } } Response: { "error_code": 0 }
请求参数说明:
所有参数均为可选,但至少携带一个参数
参数 | 类型 | 说明 |
---|---|---|
enabled | 字符串 |
检测开关 取值范围: on:启用 off:禁用 |
threshold | 整型 | 时间阈值(入侵时间),单位:秒。 |
percentage | 整型 | 占比 |
constant_alarm_enabled | 字符串 |
持续报警开关。 取值范围: on:启用 off:禁用 开启持续报警后,联动录像/白光报警/声音报警/报警接口输出保持持续触发;消息推送仅在事件第一次触发时生效,不做持续推送。 |
confidence | 整型 | 电瓶车检测置信度。 |
filter_level | 整型 |
电瓶车检测速度。 取值范围: 0~2范围内的整数,分别代表三档检测速度:低、中和高。数值越大表示检测速度越快。 |
bike_enabled | 字符串 |
检测时是否过滤自行车。 取值范围: off:不过滤自行车,即检测到自行车时需要报警。 on:过滤自行车,即检测到自行车时不需要报警。 |
end_delay | 整型 | 电瓶车报警延时时间,单位:秒。 |
4.13.9.3 获取电瓶车检测参数
Request: { "method": "get", "ebike_detection": { "name": "detection" } } Response: { "error_code": 0, "ebike_detection": { "detection": { "enabled": "on", "threshold": "0", "percentage": "51", "constant_alarm_enabled": "on", "confidence": "20", "filter_level": "1", "bike_enabled": "on", "end_delay": "5" } } }
请求参数说明:
参数 | 类型 | 说明 |
---|---|---|
enabled | 字符串 |
检测开关 取值范围: on:启用 off:禁用 |
threshold | 整型 | 时间阈值(入侵时间),单位:秒。 |
percentage | 整型 | 占比 |
constant_alarm_enabled | 字符串 |
持续报警开关。 取值范围: on:启用 off:禁用 开启持续报警后,联动录像/白光报警/声音报警/报警接口输出保持持续触发;消息推送仅在事件第一次触发时生效,不做持续推送。 |
confidence | 整型 | 电瓶车检测置信度。 |
filter_level | 整型 |
电瓶车检测速度。 取值范围: 0~2范围内的整数,分别代表三档检测速度:低、中和高。数值越大表示检测速度越快。 |
bike_enabled | 字符串 |
检测时是否过滤自行车。 取值范围: off:不过滤自行车,即检测到自行车时需要报警。 on:过滤自行车,即检测到自行车时不需要报警。 |
end_delay | 整型 | 电瓶车报警延时时间,单位:秒。 |
4.13.9.4 获取报警区域信息
Request: { "method": "get", "ebike_detection": { "table": "region_info" // "chn2_region_info"(对应多sensor请求,第一个镜头不需要带chnx前缀) } } Response: { "error_code": 0, "ebike_detection": { "region_info": // "chn2_region_info"(对应多sensor请求,第一个镜头不需要带chnx前缀) [ { "region_info_1": { "id": "1", "pt1_x":"3000", "pt1_y":"3500", "pt2_x":"2000", "pt2_y":"5500", "pt3_x":"3500", "pt3_y":"8000", "pt4_x":"4875", "pt4_y":"4000", "position_pan": "0.200000", "position_tilt": "-0.700000", "position_zoom": "0.100000", } } ] } }
请求参数说明:
参数 | 类型 | 说明 |
---|---|---|
id | 字符串 | 侦测区域编号 |
pt1_x | 整型 | 区域矩形,左上角点位的x坐标 |
pt1_y | 整型 | 区域矩形,左上角点位的y坐标 |
pt2_x | 整型 | 区域矩形,右上角点位的x坐标 |
pt2_y | 整型 | 区域矩形,右上角点位的y坐标 |
pt3_x | 整型 | 区域矩形,右下角点位的x坐标 |
pt3_y | 整型 | 区域矩形,右下角点位的y坐标 |
pt4_x | 整型 | 区域矩形,左下角点位的x坐标 |
pt4_y | 整型 | 区域矩形,左下角点位的y坐标 |
position_pan | 其他 | 设备当前的水平位置信息,当module_spec字段中包含"PTZ"或"motor"字段时有该字段。 |
position_tilt | 其他 | 设备当前的垂直位置信息,当module_spec字段中包含"PTZ"或"motor"字段时有该字段。 |
position_zoom | 其他 | 设备当前的缩放倍数信息,当module_spec字段中包含"PTZ"字段并且PTZ Capability 包含“position_zoom_range”字段时有该字段。 |