rtsp_enabled: false # 应用配置 app: debug: false log_level: INFO log_file: "log/app.log" # 资源文件夹配置 face: face_register_image_dir: "D:/ruoyi/uploadPath/face" video_dir: "D:/ruoyi/uploadPath/video" face_cal_feature_timeout_hours: 10 face_model_version: 0 face_use_gpu: true face_use_npu: false sur_config_type_face: 0 sur_config_scope_global: 0 # 数据库配置 database: host: localhost port: 5432 user: postgres password: yipai123 name: pmms schema: public pool_size: 10 max_overflow: 20 pool_recycle: 3600 echo: false # 服务组配置:每个组有独立的 WebSocket 和算法类型 # debug_mode: True=前台运行(适合PyCharm调试),False=后台运行(适合生产部署) debug_mode: true downloader_debug_mode: false # 下载进程调试模式 total_devices: 1 # 显卡核心数量,用于自动分配设备 alert_push_url: "http://123.57.151.210:10000/picenter/websocket/test/process" hls_root_path: "D:/ProjectDoc/Police/data/hls" hls_downloader_daily_rotate_hour: 3 # 凌晨轮换时间 hls_downloader_retention_days: 3 # 文件保留天数 hls_downloader_retry_interval_seconds: 10 # 重试等待秒数 # 视频剪辑配置 video_clip_output_dir: "D:/ProjectDoc/Police/data/video_clips" # 视频剪辑输出目录 video_clip_duration_seconds: 30 # 回溯时长(秒) video_clip_retention_seconds: 3600 # 视频文件保留时长(秒) video_clip_default_segment_duration: 2 # 默认分片时长fallback(秒) service_groups: #- name: "kadian_group" # 服务组名称 # video_source_type: "hls" # ws_host: "0.0.0.0" # WebSocket 服务地址 # ws_port: 8765 # WebSocket 服务端口 # algorithm: "checkpoint" # 算法类型 # cameras: # 该组下的摄像头列表 # - id: 8 # index: "12345" # name: Entrance # params: # model_path: "Kadian_sanshijiazi.onnx" # roi_points: # - [0.15, 0.001] # - [0.5, 0.001] # - [1.0, 0.8] # - [0.35, 1.0] - name: "indoor_group" # 服务组名称 video_source_type: "hls" ws_host: "0.0.0.0" # WebSocket 服务地址 ws_port: 8765 # WebSocket 服务端口 algorithm: "indoor" # 算法类型 cameras: # 该组下的摄像头列表 - id: 8 index: "12345" name: Entrance params: model_path: "kanshousuo.onnx" door_rois: left_door_1: points: - [0.195, 0.242] - [0.265, 0.17] - [0.3, 0.63] - [0.248, 0.8] color: [255, 0, 0] left_door_2: points: - [0.3, 0.1] - [0.34, 0.08] - [0.35, 0.43] - [0.322, 0.52] color: [0, 255, 0] left_door_3: points: - [0.355, 0.06] - [0.42, 0.0] - [0.42, 0.18] - [0.362, 0.36] color: [0, 0, 255] right_door_1: points: - [0.735, 0.142] - [0.81, 0.22] - [0.78, 0.8] - [0.715, 0.65] color: [255, 255, 0] right_door_2: points: - [0.65, 0.06] - [0.7, 0.09] - [0.69, 0.5] - [0.65, 0.4] color: [255, 165, 0] #- name: "prison_group" # 服务组名称 # video_source_type: "hls" # ws_host: "0.0.0.0" # WebSocket 服务地址 # ws_port: 8766 # WebSocket 服务端口 # algorithm: "prison" # 算法类型 # cameras: # 该组下的摄像头列表 # - id: 1 # index: testindexcode # name: Entrance # params: # roi_points: # - [0.15, 0.001] # - [0.5, 0.001] # - [1.0, 0.8] # - [0.35, 1.0] # 告警类型映射 (code -> 中文名称) alert_types: # 卡点检测 (checkpoint) "Unchecked Trunk": "未检查后备箱" "Ignore": "漏检" "Nobody": "无人在场" "Only One": "单人单检" # 监狱检测 (prison) "prisoner": "带出犯人" "violation": "路线违规" "Indoor Violation": "违规进入区域" # 监控室检测 (supervision_room) "Playing Phone": "玩手机" "Smoke": "吸烟" "Nobody Checking": "无人在场" # 告警推送频率配置(可选,单位:秒) # 如果某个 action 配置了,则使用配置的时间;否则使用默认的 ALERT_PUSH_INTERVAL(5秒) alert_push_intervals: "Unchecked Trunk": 30 # 未检查后备箱 - 10秒 "Ignore": 30 # 漏检 - 3秒 "Nobody": 600 # 无人在场 - 5秒 "Only One": 120