Files
Security_AI_integrated/config.yaml

107 lines
3.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
2026-01-14 17:12:16 +08:00
# 大模型配置
llm:
api_key: "sk-21e61bef09074682b589da3bdbfe07a2" # 请替换为实际的API密钥阿里云DashScope API Key
base_url: "https://dashscope.aliyuncs.com/compatible-mode/v1/"
model_name: "qwen3-vl-flash" # 模型名称可选qwen-vl-max, qwen-vl-plus, qwen3-vl-flash等
2026-01-12 17:38:39 +08:00
common:
2026-01-14 17:12:16 +08:00
# 工作时间段:支持多个时间段,格式为 [开始小时, 开始分钟, 结束小时, 结束分钟]
# 8:30-11:00, 12:00-17:30
working_hours:
- [8, 30, 11, 0] # 8:30-11:00
- [12, 0, 17, 30] # 12:00-17:30
process_every_n_frames: 3 # 每3帧处理1帧用于人员离岗
2026-01-12 17:38:39 +08:00
alert_cooldown_sec: 300 # 离岗告警冷却(秒)
2026-01-14 17:12:16 +08:00
off_duty_alert_threshold_sec: 360 # 离岗超过6分钟360秒触发告警
2026-01-12 17:38:39 +08:00
cameras:
- id: "cam_01"
rtsp_url: "rtsp://admin:admin@172.16.8.19:554/cam/realmonitor?channel=16&subtype=1"
process_every_n_frames: 5
2026-01-14 17:12:16 +08:00
rois:
- name: "离岗检测区域"
points: [[380, 50], [530, 100], [550, 550], [140, 420]]
algorithms:
- name: "人员离岗"
enabled: true
off_duty_threshold_sec: 300 # 离岗超时告警(秒)
on_duty_confirm_sec: 5 # 上岗确认时间(秒)
off_duty_confirm_sec: 30 # 离岗确认时间(秒)
- name: "周界入侵"
enabled: false
# - name: "周界入侵区域1"
# points: [[100, 100], [200, 100], [200, 300], [100, 300]]
# algorithms:
# - name: "人员离岗"
# enabled: false
# - name: "周界入侵"
# enabled: false
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"
2026-01-14 17:12:16 +08:00
rois:
- name: "离岗检测区域"
points: [[380, 50], [530, 100], [550, 550], [140, 420]]
algorithms:
- name: "人员离岗"
enabled: true
off_duty_threshold_sec: 600
on_duty_confirm_sec: 10
off_duty_confirm_sec: 20
- name: "周界入侵"
enabled: false
2026-01-12 17:38:39 +08:00
- id: "cam_03"
rtsp_url: "rtsp://admin:admin@172.16.8.26:554/cam/realmonitor?channel=3&subtype=1"
2026-01-14 17:12:16 +08:00
rois:
- name: "离岗检测区域"
points: [[380, 50], [530, 100], [550, 550], [140, 420]]
algorithms:
- name: "人员离岗"
enabled: true
off_duty_threshold_sec: 600
on_duty_confirm_sec: 10
off_duty_confirm_sec: 20
- name: "周界入侵"
enabled: false
- id: "cam_04"
rtsp_url: "rtsp://admin:admin@172.16.8.20:554/cam/realmonitor?channel=14&subtype=1"
process_every_n_frames: 5
rois:
- name: "离岗检测区域"
# points: [ [ 380, 50 ], [ 530, 100 ], [ 550, 550 ], [ 140, 420 ] ]
algorithms:
- name: "人员离岗"
enabled: false
- name: "周界入侵"
enabled: true
- id: "cam_05"
rtsp_url: "rtsp://admin:admin@172.16.8.31:554/cam/realmonitor?channel=15&subtype=1"
process_every_n_frames: 5
rois:
- name: "离岗检测区域"
# points: [ [ 380, 50 ], [ 530, 100 ], [ 550, 550 ], [ 140, 420 ] ]
algorithms:
- name: "人员离岗"
enabled: false # 离岗确认时间(秒)
- name: "周界入侵"
enabled: true
- id: "cam_06"
rtsp_url: "rtsp://admin:admin@172.16.8.35:554/cam/realmonitor?channel=13&subtype=1"
process_every_n_frames: 5
rois:
- name: "离岗检测区域"
points: [ [ 150, 100 ], [ 600, 100 ], [ 600, 500 ], [ 150, 500 ] ]
algorithms:
- name: "人员离岗"
enabled: false
- name: "周界入侵"
enabled: true