推送频率各个类型的警告各自限制频率

This commit is contained in:
zqc
2026-03-11 10:53:54 +08:00
parent e7ec268b24
commit 2fd67fc656
3 changed files with 31 additions and 7 deletions

View File

@@ -49,16 +49,16 @@ video_clip_default_segment_duration: 2 # 默认分片
service_groups:
- name: "kadian_group" # 服务组名称
video_source_type: "rtsp"
video_source_type: "hls"
ws_host: "0.0.0.0" # WebSocket 服务地址
ws_port: 8765 # WebSocket 服务端口
algorithm: "corridor" # 算法类型
algorithm: "checkpoint" # 算法类型
cameras: # 该组下的摄像头列表
- id: 8
index: "12345"
name: Entrance
params:
model_path: "Kadian.onnx"
model_path: "Kadian_sanshijiazi.onnx"
roi_points:
- [0.15, 0.001]
- [0.5, 0.001]
@@ -96,3 +96,12 @@ alert_types:
"Playing Phone": "玩手机"
"Smoke": "吸烟"
"Nobody Checking": "无人在场"
# 告警推送频率配置(可选,单位:秒)
# 如果某个 action 配置了,则使用配置的时间;否则使用默认的 ALERT_PUSH_INTERVAL5秒
alert_push_intervals:
"Unchecked Trunk": 30 # 未检查后备箱 - 10秒
"Ignore": 30 # 漏检 - 3秒
"Nobody": 600 # 无人在场 - 5秒
"Only One": 120