2026-07-11 15:28:36 +08:00

54 lines
2.1 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"?>
<!--
DroneScrewServer 配置示例(板一:双目采集 + 推流 + 算法 + ZMQ)
使用:将本文件拷贝到 /opt/dronescrewserver/config/config.xml
-->
<DroneScrewServerConfig>
<!-- 双目相机参数
role: 软件逻辑左右目;安装方向不确定时,可交换 left/right 的 index 或 serialNumber
index: 相机枚举索引(serialNumber 为空时使用)
serialNumber: 相机序列号(优先使用序列号,为空则使用 index)
exposureTime: 曝光时间(微秒)
gain: 增益
-->
<Camera role="left" index="0" serialNumber="" exposureTime="10000.0" gain="1.0" />
<Camera role="right" index="1" serialNumber="" exposureTime="10000.0" gain="1.0" />
<!-- IO 触发:GPIO 113 输出上升沿,MVS Line0 RisingEdge 触发双相机同步 -->
<Trigger useIoTrigger="true"
gpio="113"
source="0"
activation="0" />
<!-- ZeroMQ:控制 REP socket + 结果 PUB socket + 原始图像 PUB socket
rawImagePort=0 表示不启用原始图像广播
原始图像订阅会发送左右目两张图像
-->
<Zmq controlPort="15555"
resultPort="15556"
rawImagePort="15557" />
<!-- RTSP 拉流参数(客户端从 mediamtx 拉取 streamCamera 指定的相机图像)
port 是 RTSP 对外拉流端口,默认 8554;服务内部 RTMP 推流端口固定为 1935
streamCamera: left/right,建议配置为 USB3.0 相机对应的软件角色
-->
<Rtsp port="8554"
path="/live/dronescrew"
bitrateKbps="4096"
fps="30"
streamCamera="left"
streamWidth="1024"
streamHeight="750" />
<!-- 检测算法参数(预留,算法需要左右目双目输入)-->
<Algorithm scoreThreshold="0.5"
nmsThreshold="0.45"
inputWidth="4096"
inputHeight="3000"
modelType="1"
expectedBoltCount="8"
configPath="config/config.rk3588.yaml" />
</DroneScrewServerConfig>