Files
Security_AI_integrated/config.yaml

43 lines
1.8 KiB
YAML
Raw Normal View History

2026-01-12 17:38:39 +08:00
model:
path: "C:/Users/16337/PycharmProjects/Security/yolo11n.pt"
imgsz: 480
conf_threshold: 0.5
device: "cuda" # cuda, cpu
common:
working_hours: [9, 17] # 工作时间9:00 ~ 17:0024小时制
process_every_n_frames: 3 # 每3帧处理1帧
alert_cooldown_sec: 300 # 离岗告警冷却(秒)
crowd_cooldown_sec: 180 # 聚集告警冷却(秒)
entry_grace_period_sec: 1.0 # 入岗保护期(防漏检)
cameras:
- id: "cam_01"
rtsp_url: "rtsp://admin:admin@172.16.8.19:554/cam/realmonitor?channel=16&subtype=1"
roi_points: [[380, 50], [530, 100], [550, 550], [140, 420]] # 离岗检测区域
crowd_roi_points: [[220, 50], [380, 60], [180, 525], [0, 500]] # 聚集检测区域
off_duty_threshold_sec: 300 # 离岗超时告警(秒)
on_duty_confirm_sec: 5 # 上岗确认时间(秒)
process_every_n_frames: 5
off_duty_confirm_sec: 30 # 离岗确认时间(秒)
2026-01-12 17:56:44 +08:00
crowd_threshold: 5 # 聚集人数阈值(最低触发)
2026-01-12 17:38:39 +08:00
- id: "cam_02"
rtsp_url: "rtsp://admin:admin@172.16.8.13:554/cam/realmonitor?channel=7&subtype=1"
roi_points: [ [ 380, 50 ], [ 530, 100 ], [ 550, 550 ], [ 140, 420 ] ] # 离岗检测区域
crowd_roi_points: [ [ 220, 50 ], [ 380, 60 ], [ 180, 525 ], [ 0, 500 ] ] # 聚集检测区域
off_duty_threshold_sec: 600
on_duty_confirm_sec: 10
off_duty_confirm_sec: 20
crowd_threshold: 3
- id: "cam_03"
rtsp_url: "rtsp://admin:admin@172.16.8.26:554/cam/realmonitor?channel=3&subtype=1"
roi_points: [ [ 380, 50 ], [ 530, 100 ], [ 550, 550 ], [ 140, 420 ] ] # 离岗检测区域
crowd_roi_points: [ [ 220, 50 ], [ 380, 60 ], [ 180, 525 ], [ 0, 500 ] ] # 聚集检测区域
off_duty_threshold_sec: 600
on_duty_confirm_sec: 10
off_duty_confirm_sec: 20
crowd_threshold: 3