<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>MainWindow</class>
 <widget class="QMainWindow" name="MainWindow">
  <property name="windowTitle">
   <string>人脸识别测试软件 (PyQt5)</string>
  </property>
  <widget class="QWidget" name="centralwidget">
   <layout class="QVBoxLayout" name="verticalLayout_root">
    <property name="spacing">
     <number>8</number>
    </property>

    <!-- 顶部：串口配置 -->
    <item>
     <widget class="QGroupBox" name="group_serial">
      <property name="title">
       <string>串口设置</string>
      </property>
      <layout class="QHBoxLayout" name="layout_serial">
       <item><widget class="QLabel" name="lbl_port"><property name="text"><string>Port:</string></property></widget></item>
       <item><widget class="QComboBox" name="cb_port"/></item>
       <item><widget class="QLabel" name="lbl_baud"><property name="text"><string>Baud:</string></property></widget></item>
       <item><widget class="QComboBox" name="cb_baud"/></item>
       <item><widget class="QPushButton" name="btn_refresh"><property name="text"><string>刷新端口</string></property></widget></item>
       <item><widget class="QPushButton" name="btn_conn"><property name="text"><string>连接</string></property></widget></item>
      </layout>
     </widget>
    </item>

    <!-- 中间：命令区 + 视频区 -->
    <item>
     <widget class="QSplitter" name="splitter_main">
      <property name="orientation">
       <enum>Qt::Horizontal</enum>
      </property>
      
      <!-- 左侧命令区 -->
      <widget class="QGroupBox" name="group_cmd">
       <property name="title"><string>命令</string></property>
       <layout class="QVBoxLayout" name="layout_cmd">
        <property name="spacing"><number>6</number></property>
        <item><widget class="QPushButton" name="btn_reset"><property name="text"><string>复位</string></property></widget></item>
        <item><widget class="QPushButton" name="btn_video_mode"><property name="text"><string>视频模式</string></property></widget></item>
        <item><widget class="QCheckBox" name="chk_face_box"><property name="text"><string>显示人脸框</string></property></widget></item>
        <item><widget class="QPushButton" name="btn_verify"><property name="text"><string>识别</string></property></widget></item>
        <item><widget class="QPushButton" name="btn_enroll"><property name="text"><string>ITG注册</string></property></widget></item>
        <item><widget class="QPushButton" name="btn_users"><property name="text"><string>用户管理</string></property></widget></item>
        <item>
         <spacer name="spacer_cmd">
          <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>
      </widget>

      <!-- 右侧视频区 -->
      <widget class="QGroupBox" name="group_video">
       <property name="title"><string>USB 视频流</string></property>
       <layout class="QVBoxLayout" name="layout_video">
        <property name="spacing"><number>6</number></property>
        <item>
         <widget class="QLabel" name="video_label">
          <property name="text"><string>未打开</string></property>
          <property name="alignment"><set>Qt::AlignCenter</set></property>
          <property name="minimumSize"><size><width>360</width><height>480</height></size></property>
          <property name="frameShape"><enum>QFrame::Box</enum></property>
          <property name="frameShadow"><enum>QFrame::Sunken</enum></property>
         </widget>
        </item>
        <item><widget class="QPushButton" name="btn_video"><property name="text"><string>打开视频</string></property></widget></item>
       </layout>
      </widget>
     </widget>
    </item>

    <!-- 底部日志 -->
    <item>
     <widget class="QGroupBox" name="group_log">
      <property name="title"><string>日志</string></property>
      <layout class="QVBoxLayout" name="layout_log">
       <property name="spacing"><number>6</number></property>
       <item>
        <widget class="QTextEdit" name="txt_log">
         <property name="readOnly"><bool>true</bool></property>
         <property name="font">
          <font><family>Consolas</family><pointsize>10</pointsize></font>
         </property>
        </widget>
       </item>
       <item><widget class="QPushButton" name="btn_save"><property name="text"><string>保存日志</string></property></widget></item>
      </layout>
     </widget>
    </item>

   </layout>
  </widget>
 </widget>
 <resources/>
 <connections/>
</ui>
