模型、区域点、颜色从配置中读取

This commit is contained in:
zqc
2026-04-01 17:00:36 +08:00
parent 54a906211a
commit 59ab409d52
2 changed files with 86 additions and 31 deletions

View File

@@ -48,22 +48,69 @@ video_clip_retention_seconds: 3600 # 视频文件
video_clip_default_segment_duration: 2 # 默认分片时长fallback
service_groups:
- name: "kadian_group" # 服务组名称
#- 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: "checkpoint" # 算法类型
algorithm: "indoor" # 算法类型
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]
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 服务地址