配置项和消息队列说明

一、投递的消息格式

1. 报警消息
TOPIC: AI_VIDEO_WARNING

{"model_id": "ca7ec14a41d04dff5bfaec622cf90ae3", "image_url": "http://tmp.p40.hnsmart.icu/captcha/c8d3b306d30447cb6735df9421771440/67825181-88cf-4232-9662-6bdfe493f908.jpg", "stream_id": "c8d3b306d30447cb6735df9421771440", "algorithm_id": 1, "event_id": "67825181-88cf-4232-9662-6bdfe493f908", "event_msg": "\u4eba\u5458\u79bb\u5c97,\u5e94\u67091\u4eba,\u5b9e\u96450\u4eba", "result": {"model": {"detections": [], "current_time": 1704980696049}, "algorithm": {"area_result": []}}}
{"model_id": "ca7ec14a41d04dff5bfaec622cf90ae3", "image_url": "http://tmp.p40.hnsmart.icu/captcha/c8d3b306d30447cb6735df9421771440/9c2cf8c4-34ff-431d-bb82-4f692e8915d6.jpg", "stream_id": "c8d3b306d30447cb6735df9421771440", "algorithm_id": 2, "event_id": "9c2cf8c4-34ff-431d-bb82-4f692e8915d6", "event_msg": "\u533a\u57df\u5165\u4fb5,\u5165\u4fb5\u7c7b\u578b:person", "result": {"model": {"detections": [{"xyxy": [998.223876953125, 258.4078674316406, 1165.853271484375, 679.2696533203125], "confidence": 0.8475700616836548, "label": "person", "index": 0, "area_position": [[925, 572], [239, 1076], [1582, 1076], [1618, 812], [1469, 787], [1496, 682]]}], "current_time": 1705030962768}, "algorithm": {"area_result": [{"xyxy": [998.223876953125, 258.4078674316406, 1165.853271484375, 679.2696533203125], "confidence": 0.8475700616836548, "label": "person", "index": 0, "area_position": [[925, 572], [239, 1076], [1582, 1076], [1618, 812], [1469, 787], [1496, 682]]}]}}}

2. 消警消息
TOPIC: AI_VIDEO_CANCEL

{"event_id": "67825181-88cf-4232-9662-6bdfe493f908"}

3. 视频录制成功
TOPIC: AI_VIDEO_RECORD

{"event_id": "67825181-88cf-4232-9662-6bdfe493f908", "video_url": "http://tmp.p40.hnsmart.icu//record/c8d3b306d30447cb6735df9421771440/67825181-88cf-4232-9662-6bdfe493f908.mp4", "video_size": [1920, 1080], "video_file_size": 1217040, "frames": 240, "fps": 25.0, "video_length": 9.6}

二、识别算法配置参数

# 识别算法全局参数

@float confidence 置信度,范围 0-1
@int frame_event_length 连续多少帧触发报警
@int frame_extract 抽帧频率,多少帧抽取一帧进行识别
@list capture_color 报警图片的框选的颜色数组 如:[255,0,0]
@int capture_size 报警图片的框选的线条粗细
@int record_frame_length 报警时自动截取的视频的长度的一半 推荐为 25(帧数) * 5 = 125

# 识别算法拓展参数

@list area_position 区域坐标,整数,支持多个区域,格式如 [[[10,20],[20,30],[25,16],[99,11]]]
@int area_people 区域内人员最少数量
@list capture_color 区域的框选的颜色数组 RGB
@int capture_size 区域的框选的线条粗细
点赞

发表评论

电子邮件地址不会被公开。必填项已用 * 标注