2025-12-20 16:18:12 +08:00

48 lines
2.0 KiB
XML
Raw 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.

<?xml version="1.0" encoding="UTF-8"?>
<BinocularMarkConfig>
<!-- TCP服务器配置 -->
<ServerConfig port="5901" />
<!-- 相机配置
index: 相机索引(0=左相机, 1=右相机)
serialNumber: 相机序列号(可选,推荐使用以确保相机不会对调)
name: 相机名称(用于日志显示)
exposureTime: 曝光时间(微秒)
gain: 增益值
注意:
1. 如果配置了serialNumber,将优先使用序列号打开相机
2. 如果未配置serialNumber,将使用index索引打开相机
3. 可以通过枚举设备获取相机序列号 -->
<Cameras>
<Camera index="0" serialNumber="" name="LeftCamera" exposureTime="10000.0" gain="1.0" />
<Camera index="1" serialNumber="" name="RightCamera" exposureTime="10000.0" gain="1.0" />
</Cameras>
<!-- 双目标定文件路径(必填项)
相对路径相对于config.xml所在目录
绝对路径:完整路径
示例:../Calib/Mark_13度/StereoCamera.xml -->
<CalibrationFile path="./StereoCamera.xml" />
<!-- Mark板参数
patternWidth/patternHeight: Mark板行列数
checkerSize: 棋盘格尺寸mm
markerSize: ArUco标记尺寸mm
dictType: ArUco字典类型1=DICT_6x6 -->
<MarkInfo patternWidth="3" patternHeight="3" checkerSize="60.0" markerSize="45.0" dictType="1" />
<!-- Board配置
totalBoardNum: Board总数
boardIdInterval: Board ID间隔
boardCharucoIdNum: 每个Board的Charuco角点数 -->
<BoardInfo totalBoardNum="1" boardIdInterval="8" boardCharucoIdNum="4" />
<!-- 算法参数
disparityOffset: 视差偏移(用于微调深度计算) -->
<AlgorithmParams disparityOffset="0.0" />
<!-- 调试参数 -->
<DebugParam enableDebug="true" saveDebugImage="false" printDetailLog="true" debugOutputPath="" />
</BinocularMarkConfig>