2025-12-18 21:36:41 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<ui version="4.0">
|
|
|
|
|
<class>MainWindow</class>
|
|
|
|
|
<widget class="QMainWindow" name="MainWindow">
|
|
|
|
|
<property name="geometry">
|
|
|
|
|
<rect>
|
|
|
|
|
<x>0</x>
|
|
|
|
|
<y>0</y>
|
2025-12-20 16:18:12 +08:00
|
|
|
<width>1200</width>
|
2025-12-18 21:36:41 +08:00
|
|
|
<height>800</height>
|
|
|
|
|
</rect>
|
|
|
|
|
</property>
|
|
|
|
|
<property name="windowTitle">
|
|
|
|
|
<string>BinocularMark 测试工具</string>
|
|
|
|
|
</property>
|
|
|
|
|
<widget class="QWidget" name="centralwidget">
|
2025-12-20 16:18:12 +08:00
|
|
|
<layout class="QVBoxLayout" name="verticalLayout_main">
|
|
|
|
|
<item>
|
|
|
|
|
<widget class="QGroupBox" name="groupBox_images">
|
|
|
|
|
<property name="title">
|
|
|
|
|
<string>图像显示</string>
|
|
|
|
|
</property>
|
|
|
|
|
<layout class="QVBoxLayout" name="verticalLayout_images">
|
2025-12-18 21:36:41 +08:00
|
|
|
<item>
|
2025-12-20 16:18:12 +08:00
|
|
|
<layout class="QHBoxLayout" name="horizontalLayout_images">
|
|
|
|
|
<item>
|
|
|
|
|
<widget class="QLabel" name="label_left">
|
|
|
|
|
<property name="minimumSize">
|
|
|
|
|
<size>
|
|
|
|
|
<width>400</width>
|
|
|
|
|
<height>300</height>
|
|
|
|
|
</size>
|
|
|
|
|
</property>
|
|
|
|
|
<property name="frameShape">
|
|
|
|
|
<enum>QFrame::Box</enum>
|
|
|
|
|
</property>
|
|
|
|
|
<property name="text">
|
|
|
|
|
<string>左图</string>
|
|
|
|
|
</property>
|
|
|
|
|
<property name="scaledContents">
|
|
|
|
|
<bool>false</bool>
|
|
|
|
|
</property>
|
|
|
|
|
<property name="alignment">
|
|
|
|
|
<set>Qt::AlignCenter</set>
|
|
|
|
|
</property>
|
|
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<widget class="QLabel" name="label_right">
|
|
|
|
|
<property name="minimumSize">
|
|
|
|
|
<size>
|
|
|
|
|
<width>400</width>
|
|
|
|
|
<height>300</height>
|
|
|
|
|
</size>
|
|
|
|
|
</property>
|
|
|
|
|
<property name="frameShape">
|
|
|
|
|
<enum>QFrame::Box</enum>
|
|
|
|
|
</property>
|
|
|
|
|
<property name="text">
|
|
|
|
|
<string>右图</string>
|
|
|
|
|
</property>
|
|
|
|
|
<property name="scaledContents">
|
|
|
|
|
<bool>false</bool>
|
|
|
|
|
</property>
|
|
|
|
|
<property name="alignment">
|
|
|
|
|
<set>Qt::AlignCenter</set>
|
|
|
|
|
</property>
|
|
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
</layout>
|
2025-12-18 21:36:41 +08:00
|
|
|
</item>
|
|
|
|
|
</layout>
|
2025-12-20 16:18:12 +08:00
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<widget class="QWidget" name="widget_bottom" native="true">
|
|
|
|
|
<property name="maximumSize">
|
|
|
|
|
<size>
|
|
|
|
|
<width>16777215</width>
|
|
|
|
|
<height>350</height>
|
|
|
|
|
</size>
|
|
|
|
|
</property>
|
|
|
|
|
<layout class="QHBoxLayout" name="horizontalLayout_bottom">
|
2025-12-18 21:36:41 +08:00
|
|
|
<item>
|
2025-12-20 16:18:12 +08:00
|
|
|
<widget class="QGroupBox" name="groupBox_result">
|
|
|
|
|
<property name="title">
|
|
|
|
|
<string>检测结果</string>
|
2025-12-18 21:36:41 +08:00
|
|
|
</property>
|
2025-12-20 16:18:12 +08:00
|
|
|
<layout class="QVBoxLayout" name="verticalLayout_result">
|
|
|
|
|
<item>
|
|
|
|
|
<widget class="QTextEdit" name="textEdit_result">
|
|
|
|
|
<property name="readOnly">
|
|
|
|
|
<bool>true</bool>
|
|
|
|
|
</property>
|
|
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
</layout>
|
2025-12-18 21:36:41 +08:00
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
2025-12-20 16:18:12 +08:00
|
|
|
<widget class="QGroupBox" name="groupBox_control">
|
|
|
|
|
<property name="title">
|
|
|
|
|
<string>控制面板</string>
|
2025-12-18 21:36:41 +08:00
|
|
|
</property>
|
2025-12-20 16:18:12 +08:00
|
|
|
<layout class="QVBoxLayout" name="verticalLayout_control">
|
|
|
|
|
<item>
|
|
|
|
|
<layout class="QHBoxLayout" name="horizontalLayout_ip">
|
|
|
|
|
<item>
|
|
|
|
|
<widget class="QLabel" name="label_ip">
|
|
|
|
|
<property name="text">
|
|
|
|
|
<string>服务器IP:</string>
|
|
|
|
|
</property>
|
|
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<widget class="QLineEdit" name="lineEdit_ip">
|
|
|
|
|
<property name="text">
|
|
|
|
|
<string>192.168.10.20</string>
|
|
|
|
|
</property>
|
|
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
</layout>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<layout class="QHBoxLayout" name="horizontalLayout_port">
|
|
|
|
|
<item>
|
|
|
|
|
<widget class="QLabel" name="label_port">
|
|
|
|
|
<property name="text">
|
|
|
|
|
<string>端口:</string>
|
|
|
|
|
</property>
|
|
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<widget class="QLineEdit" name="lineEdit_port">
|
|
|
|
|
<property name="text">
|
|
|
|
|
<string>5901</string>
|
|
|
|
|
</property>
|
|
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
</layout>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<widget class="QPushButton" name="btn_connect">
|
|
|
|
|
<property name="text">
|
|
|
|
|
<string>连接</string>
|
|
|
|
|
</property>
|
|
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<widget class="QPushButton" name="btn_startWork">
|
|
|
|
|
<property name="enabled">
|
|
|
|
|
<bool>false</bool>
|
|
|
|
|
</property>
|
|
|
|
|
<property name="text">
|
|
|
|
|
<string>开始持续检测</string>
|
|
|
|
|
</property>
|
|
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<widget class="QPushButton" name="btn_singleImage">
|
|
|
|
|
<property name="enabled">
|
|
|
|
|
<bool>false</bool>
|
|
|
|
|
</property>
|
|
|
|
|
<property name="text">
|
|
|
|
|
<string>单次取图</string>
|
|
|
|
|
</property>
|
|
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<widget class="QPushButton" name="btn_singleDetection">
|
|
|
|
|
<property name="enabled">
|
|
|
|
|
<bool>false</bool>
|
|
|
|
|
</property>
|
|
|
|
|
<property name="text">
|
|
|
|
|
<string>单次检测</string>
|
|
|
|
|
</property>
|
|
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<widget class="QPushButton" name="btn_continuousImage">
|
|
|
|
|
<property name="enabled">
|
|
|
|
|
<bool>false</bool>
|
|
|
|
|
</property>
|
|
|
|
|
<property name="text">
|
|
|
|
|
<string>连续取图</string>
|
|
|
|
|
</property>
|
|
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<widget class="QPushButton" name="btn_startContinuousImageStream">
|
|
|
|
|
<property name="enabled">
|
|
|
|
|
<bool>false</bool>
|
|
|
|
|
</property>
|
|
|
|
|
<property name="text">
|
|
|
|
|
<string>开始持续图像流</string>
|
|
|
|
|
</property>
|
|
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<spacer name="verticalSpacer">
|
|
|
|
|
<property name="orientation">
|
|
|
|
|
<enum>Qt::Vertical</enum>
|
|
|
|
|
</property>
|
|
|
|
|
<property name="sizeHint" stdset="0">
|
|
|
|
|
<size>
|
|
|
|
|
<width>20</width>
|
|
|
|
|
<height>40</height>
|
|
|
|
|
</size>
|
|
|
|
|
</property>
|
|
|
|
|
</spacer>
|
|
|
|
|
</item>
|
|
|
|
|
</layout>
|
2025-12-18 21:36:41 +08:00
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
2025-12-20 16:18:12 +08:00
|
|
|
<widget class="QGroupBox" name="groupBox_params">
|
|
|
|
|
<property name="title">
|
|
|
|
|
<string>参数配置</string>
|
2025-12-18 21:36:41 +08:00
|
|
|
</property>
|
2025-12-20 16:18:12 +08:00
|
|
|
<layout class="QVBoxLayout" name="verticalLayout_params">
|
|
|
|
|
<item>
|
|
|
|
|
<layout class="QHBoxLayout" name="horizontalLayout_exposure">
|
|
|
|
|
<item>
|
|
|
|
|
<widget class="QLabel" name="label_exposure">
|
|
|
|
|
<property name="text">
|
|
|
|
|
<string>曝光时间:</string>
|
|
|
|
|
</property>
|
|
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<widget class="QLineEdit" name="lineEdit_exposure">
|
|
|
|
|
<property name="text">
|
|
|
|
|
<string>5000</string>
|
|
|
|
|
</property>
|
|
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<widget class="QPushButton" name="btn_setExposureTime">
|
|
|
|
|
<property name="enabled">
|
|
|
|
|
<bool>false</bool>
|
|
|
|
|
</property>
|
|
|
|
|
<property name="text">
|
|
|
|
|
<string>设置曝光</string>
|
|
|
|
|
</property>
|
|
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
</layout>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<layout class="QHBoxLayout" name="horizontalLayout_gain">
|
|
|
|
|
<item>
|
|
|
|
|
<widget class="QLabel" name="label_gain">
|
|
|
|
|
<property name="text">
|
|
|
|
|
<string>增益:</string>
|
|
|
|
|
</property>
|
|
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<widget class="QLineEdit" name="lineEdit_gain">
|
|
|
|
|
<property name="text">
|
|
|
|
|
<string>10</string>
|
|
|
|
|
</property>
|
|
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<widget class="QPushButton" name="btn_setGain">
|
|
|
|
|
<property name="enabled">
|
|
|
|
|
<bool>false</bool>
|
|
|
|
|
</property>
|
|
|
|
|
<property name="text">
|
|
|
|
|
<string>设置增益</string>
|
|
|
|
|
</property>
|
|
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
</layout>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<widget class="QPushButton" name="btn_loadCalibrationFile">
|
|
|
|
|
<property name="text">
|
|
|
|
|
<string>选择标定文件</string>
|
|
|
|
|
</property>
|
|
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<widget class="QPushButton" name="btn_getCalibration">
|
|
|
|
|
<property name="enabled">
|
|
|
|
|
<bool>false</bool>
|
|
|
|
|
</property>
|
|
|
|
|
<property name="text">
|
|
|
|
|
<string>获取标定矩阵</string>
|
|
|
|
|
</property>
|
|
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<widget class="QPushButton" name="btn_setCalibration">
|
|
|
|
|
<property name="enabled">
|
|
|
|
|
<bool>false</bool>
|
|
|
|
|
</property>
|
|
|
|
|
<property name="text">
|
|
|
|
|
<string>设置标定矩阵</string>
|
|
|
|
|
</property>
|
|
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<widget class="QTextEdit" name="textEdit_calibration">
|
|
|
|
|
<property name="placeholderText">
|
|
|
|
|
<string>标定矩阵XML内容...</string>
|
|
|
|
|
</property>
|
|
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
</layout>
|
2025-12-18 21:36:41 +08:00
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
</layout>
|
2025-12-20 16:18:12 +08:00
|
|
|
</widget>
|
|
|
|
|
</item>
|
|
|
|
|
</layout>
|
2025-12-18 21:36:41 +08:00
|
|
|
</widget>
|
|
|
|
|
<widget class="QStatusBar" name="statusbar"/>
|
|
|
|
|
</widget>
|
|
|
|
|
<resources/>
|
|
|
|
|
<connections/>
|
|
|
|
|
</ui>
|