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: roi_points: - [0.15, 0.001] - [0.5, 0.001] - [1.0, 0.8] - [0.35, 1.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": "路线违规" # 监控室检测 (supervision_room) "Playing Phone": "玩手机" "Smoke": "吸烟" "Nobody Checking": "无人在场"