- 创建基本项目结构和目录 - 添加CMake构建系统 - 实现基础的配置解析功能 - 添加YOLO推理框架支持 - 集成RTSP和视频流处理功能 - 添加性能监控和日志系统
67 lines
1.2 KiB
YAML
67 lines
1.2 KiB
YAML
input:
|
|
sources:
|
|
- type: video
|
|
name: test_video
|
|
url: /path/to/test.mp4
|
|
buffer_size: 30
|
|
max_batch_size: 4
|
|
|
|
inference:
|
|
model:
|
|
onnx_path: /path/to/model.onnx
|
|
engine_path: /path/to/model.engine
|
|
input_shape: [3, 640, 640]
|
|
precision: FP16
|
|
threshold:
|
|
conf: 0.5
|
|
nms: 0.45
|
|
gpu_id: 0
|
|
|
|
render:
|
|
window:
|
|
name: "Detection Results"
|
|
width: 1280
|
|
height: 720
|
|
fullscreen: false
|
|
|
|
default_style:
|
|
box_color: [0, 255, 0]
|
|
text_color: [255, 255, 255]
|
|
transparency: 0.0
|
|
box_thickness: 2
|
|
font_scale: 0.5
|
|
font_thickness: 1
|
|
|
|
class_styles:
|
|
person:
|
|
box_color: [255, 0, 0]
|
|
text_color: [255, 255, 255]
|
|
transparency: 0.2
|
|
box_thickness: 2
|
|
font_scale: 0.5
|
|
font_thickness: 1
|
|
|
|
metrics:
|
|
show_fps: true
|
|
show_inference_time: true
|
|
show_gpu_usage: true
|
|
update_interval_ms: 1000
|
|
|
|
output:
|
|
targets:
|
|
- type: video
|
|
name: output_video
|
|
path: /tmp/output.mp4
|
|
fps: 30
|
|
codec: h264
|
|
bitrate: 4000000
|
|
- type: rtsp
|
|
name: output_rtsp
|
|
path: rtsp://localhost:8554/live
|
|
fps: 30
|
|
codec: h264
|
|
bitrate: 4000000
|
|
|
|
log:
|
|
level: info
|
|
save_path: /tmp/logs |