YantaiVisionX/config/camera_config.yaml
root 2ff9c2b0bb feat: 初始化YantaiVisionX LED灯阵监控系统
- 添加完整的项目文档(README.md, design.md, CLAUDE.md)
- 实现核心检测算法:ROI管理、峰值检测、帧间稳定
- 支持实时摄像头检测和视频文件处理
- 包含图像预处理:去雾、几何校正、图像增强
- 提供多种输出格式:JSON、CSV、矩阵、文本
- 实现双阈值检测算法适应雾天环境
- 添加ROI标定工具和配置文件管理

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-12 10:33:19 +08:00

102 lines
1.8 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 摄像头配置文件
# 支持多种摄像头类型和SDK
# 摄像头类型配置
camera_type: "opencv" # "opencv", "hikvision", "dahua", "usb"
# OpenCV摄像头配置
opencv_camera:
# 设备ID0为默认摄像头
device_id: 0
# 视频文件路径(用于测试)
video_file: null
# 分辨率设置
resolution:
width: 1920
height: 1080
# 帧率设置
fps: 30
# 缓冲区大小
buffer_size: 1
# 海康威视摄像头配置
hikvision_camera:
ip_address: "192.168.1.64"
port: 8000
username: "admin"
password: "password"
channel: 1
# 大华摄像头配置
dahua_camera:
ip_address: "192.168.1.65"
port: 37777
username: "admin"
password: "password"
channel: 0
# USB摄像头配置
usb_camera:
device_path: "/dev/video0"
resolution:
width: 1920
height: 1080
fps: 30
# 摄像头通用参数
common_settings:
# 曝光模式:自动/手动
exposure_mode: "auto" # "auto" or "manual"
# 手动曝光值仅在manual模式下有效
manual_exposure: 100
# 白平衡模式
white_balance: "auto"
# 增益设置
gain: "auto"
# 图像质量参数
brightness: 128
contrast: 128
saturation: 128
# 夜视模式(适用于星光级摄像头)
night_mode: true
# 红外滤光片设置
ir_filter: false # false为关闭红外滤光适合夜视
# 视频流参数
stream_settings:
# 编码格式
codec: "H264"
# 码率kbps
bitrate: 4000
# I帧间隔
i_frame_interval: 30
# 缓冲时间(毫秒)
buffer_time: 500
# 错误处理参数
error_handling:
# 连接超时(秒)
connection_timeout: 10
# 读取超时(秒)
read_timeout: 5
# 重连次数
max_retry_count: 3
# 重连间隔(秒)
retry_interval: 2