2025-04-25 14:48:24 +08:00

775 lines
19 KiB
XML

<?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>
<width>1230</width>
<height>718</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralWidget">
<widget class="QTabWidget" name="tabWidget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1221</width>
<height>751</height>
</rect>
</property>
<property name="currentIndex">
<number>3</number>
</property>
<widget class="QWidget" name="tab_4">
<attribute name="title">
<string>Menu</string>
</attribute>
<widget class="QPushButton" name="menufacedbbtn">
<property name="geometry">
<rect>
<x>190</x>
<y>220</y>
<width>171</width>
<height>81</height>
</rect>
</property>
<property name="text">
<string>&amp;Face Database</string>
</property>
</widget>
<widget class="QPushButton" name="menuopencamera">
<property name="geometry">
<rect>
<x>190</x>
<y>380</y>
<width>171</width>
<height>81</height>
</rect>
</property>
<property name="text">
<string>Open &amp;Camera</string>
</property>
</widget>
<widget class="QPushButton" name="menusettingbtn">
<property name="geometry">
<rect>
<x>701</x>
<y>220</y>
<width>171</width>
<height>81</height>
</rect>
</property>
<property name="text">
<string>&amp;Setting</string>
</property>
</widget>
<widget class="QPushButton" name="menuopenvideofile">
<property name="geometry">
<rect>
<x>440</x>
<y>383</y>
<width>171</width>
<height>81</height>
</rect>
</property>
<property name="text">
<string>Open &amp;Video</string>
</property>
</widget>
<widget class="QPushButton" name="menuopenpicturefile">
<property name="geometry">
<rect>
<x>706</x>
<y>383</y>
<width>171</width>
<height>81</height>
</rect>
</property>
<property name="text">
<string>Open &amp;Image</string>
</property>
</widget>
</widget>
<widget class="QWidget" name="tab_2">
<attribute name="title">
<string>Face Database</string>
</attribute>
<widget class="QTableView" name="dbtableview">
<property name="geometry">
<rect>
<x>0</x>
<y>10</y>
<width>641</width>
<height>631</height>
</rect>
</property>
</widget>
<widget class="QGroupBox" name="groupBox">
<property name="geometry">
<rect>
<x>660</x>
<y>10</y>
<width>521</width>
<height>121</height>
</rect>
</property>
<property name="title">
<string>Register</string>
</property>
<widget class="QPushButton" name="addimagebtn">
<property name="geometry">
<rect>
<x>61</x>
<y>60</y>
<width>131</width>
<height>25</height>
</rect>
</property>
<property name="text">
<string>&amp;Image</string>
</property>
</widget>
<widget class="QPushButton" name="addfilesbtn">
<property name="geometry">
<rect>
<x>309</x>
<y>60</y>
<width>151</width>
<height>25</height>
</rect>
</property>
<property name="text">
<string>&amp;Directory</string>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_2">
<property name="geometry">
<rect>
<x>660</x>
<y>230</y>
<width>521</width>
<height>391</height>
</rect>
</property>
<property name="title">
<string>Edit</string>
</property>
<widget class="QLabel" name="label_5">
<property name="geometry">
<rect>
<x>45</x>
<y>40</y>
<width>21</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>ID:</string>
</property>
</widget>
<widget class="QLineEdit" name="db_editid">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>70</x>
<y>40</y>
<width>171</width>
<height>25</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
<x>274</x>
<y>40</y>
<width>53</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Name:</string>
</property>
</widget>
<widget class="QLineEdit" name="db_editname">
<property name="geometry">
<rect>
<x>320</x>
<y>40</y>
<width>171</width>
<height>25</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_6">
<property name="geometry">
<rect>
<x>10</x>
<y>90</y>
<width>53</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Picture:</string>
</property>
</widget>
<widget class="QLabel" name="db_editpicture">
<property name="geometry">
<rect>
<x>70</x>
<y>90</y>
<width>171</width>
<height>161</height>
</rect>
</property>
<property name="frameShape">
<enum>QFrame::Box</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLabel" name="label_8">
<property name="geometry">
<rect>
<x>283</x>
<y>90</y>
<width>41</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Face:</string>
</property>
</widget>
<widget class="QLabel" name="db_editcrop">
<property name="geometry">
<rect>
<x>320</x>
<y>90</y>
<width>111</width>
<height>101</height>
</rect>
</property>
<property name="frameShape">
<enum>QFrame::Box</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QPushButton" name="rotatebtn">
<property name="geometry">
<rect>
<x>130</x>
<y>260</y>
<width>71</width>
<height>25</height>
</rect>
</property>
<property name="text">
<string>&amp;Rotate</string>
</property>
</widget>
<widget class="QPushButton" name="dbsavebtn">
<property name="geometry">
<rect>
<x>170</x>
<y>340</y>
<width>161</width>
<height>25</height>
</rect>
</property>
<property name="text">
<string>&amp;Save</string>
</property>
</widget>
</widget>
</widget>
<widget class="QWidget" name="tab">
<attribute name="title">
<string>Preview</string>
</attribute>
<widget class="QLabel" name="previewlabel">
<property name="geometry">
<rect>
<x>6</x>
<y>26</y>
<width>800</width>
<height>600</height>
</rect>
</property>
<property name="sizeIncrement">
<size>
<width>800</width>
<height>600</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::Box</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QPushButton" name="previewrunbtn">
<property name="geometry">
<rect>
<x>831</x>
<y>603</y>
<width>101</width>
<height>25</height>
</rect>
</property>
<property name="text">
<string>&amp;Run</string>
</property>
</widget>
<widget class="QPushButton" name="previewstopbtn">
<property name="geometry">
<rect>
<x>955</x>
<y>603</y>
<width>101</width>
<height>25</height>
</rect>
</property>
<property name="text">
<string>&amp;Stop</string>
</property>
</widget>
<widget class="QLabel" name="label_4">
<property name="geometry">
<rect>
<x>816</x>
<y>25</y>
<width>71</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Record:</string>
</property>
</widget>
<widget class="QLabel" name="recognize_label">
<property name="geometry">
<rect>
<x>9</x>
<y>4</y>
<width>761</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>open camera: 0</string>
</property>
</widget>
<widget class="QTableView" name="previewtableview">
<property name="geometry">
<rect>
<x>814</x>
<y>46</y>
<width>391</width>
<height>551</height>
</rect>
</property>
</widget>
<widget class="QPushButton" name="previewclearbtn">
<property name="geometry">
<rect>
<x>1076</x>
<y>603</y>
<width>101</width>
<height>25</height>
</rect>
</property>
<property name="text">
<string>&amp;Clear </string>
</property>
</widget>
</widget>
<widget class="QWidget" name="tab_3">
<attribute name="title">
<string>Setting</string>
</attribute>
<widget class="QPushButton" name="settingsavebtn">
<property name="geometry">
<rect>
<x>880</x>
<y>470</y>
<width>121</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>&amp;Save</string>
</property>
</widget>
<widget class="QGroupBox" name="groupBox_3">
<property name="geometry">
<rect>
<x>110</x>
<y>40</y>
<width>661</width>
<height>80</height>
</rect>
</property>
<property name="title">
<string>Face Detector</string>
</property>
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>81</x>
<y>40</y>
<width>91</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Min Face Size:</string>
</property>
</widget>
<widget class="QLineEdit" name="fdminfacesize">
<property name="geometry">
<rect>
<x>180</x>
<y>40</y>
<width>113</width>
<height>25</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_11">
<property name="geometry">
<rect>
<x>381</x>
<y>40</y>
<width>121</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Score Threshold:</string>
</property>
</widget>
<widget class="QLineEdit" name="fdthreshold">
<property name="geometry">
<rect>
<x>500</x>
<y>40</y>
<width>113</width>
<height>25</height>
</rect>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_4">
<property name="geometry">
<rect>
<x>110</x>
<y>140</y>
<width>661</width>
<height>80</height>
</rect>
</property>
<property name="title">
<string>Anti-Spoofing</string>
</property>
<widget class="QLineEdit" name="antispoofreality">
<property name="geometry">
<rect>
<x>500</x>
<y>40</y>
<width>113</width>
<height>25</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_12">
<property name="geometry">
<rect>
<x>49</x>
<y>40</y>
<width>131</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Clarity Threshold:</string>
</property>
</widget>
<widget class="QLabel" name="label_13">
<property name="geometry">
<rect>
<x>370</x>
<y>40</y>
<width>131</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Reality Threshold:</string>
</property>
</widget>
<widget class="QLineEdit" name="antispoofclarity">
<property name="geometry">
<rect>
<x>180</x>
<y>40</y>
<width>113</width>
<height>25</height>
</rect>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_5">
<property name="geometry">
<rect>
<x>110</x>
<y>250</y>
<width>661</width>
<height>151</height>
</rect>
</property>
<property name="title">
<string>Quality Assessor</string>
</property>
<widget class="QLineEdit" name="yawhighthreshold">
<property name="geometry">
<rect>
<x>180</x>
<y>40</y>
<width>61</width>
<height>25</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_15">
<property name="geometry">
<rect>
<x>37</x>
<y>39</y>
<width>141</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Yaw Score Between:</string>
</property>
</widget>
<widget class="QLineEdit" name="yawlowthreshold">
<property name="geometry">
<rect>
<x>297</x>
<y>40</y>
<width>61</width>
<height>25</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="pitchhighthreshold">
<property name="geometry">
<rect>
<x>180</x>
<y>90</y>
<width>61</width>
<height>25</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_16">
<property name="geometry">
<rect>
<x>31</x>
<y>90</y>
<width>151</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Pitch Score Between:</string>
</property>
</widget>
<widget class="QLineEdit" name="pitchlowthreshold">
<property name="geometry">
<rect>
<x>298</x>
<y>90</y>
<width>61</width>
<height>25</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_20">
<property name="geometry">
<rect>
<x>362</x>
<y>40</y>
<width>51</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>°</string>
</property>
</widget>
<widget class="QLabel" name="label_21">
<property name="geometry">
<rect>
<x>363</x>
<y>89</y>
<width>51</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>°</string>
</property>
</widget>
<widget class="QLabel" name="label_22">
<property name="geometry">
<rect>
<x>245</x>
<y>40</y>
<width>51</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>° And</string>
</property>
</widget>
<widget class="QLabel" name="label_23">
<property name="geometry">
<rect>
<x>244</x>
<y>90</y>
<width>51</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>° And</string>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_6">
<property name="geometry">
<rect>
<x>110</x>
<y>430</y>
<width>661</width>
<height>91</height>
</rect>
</property>
<property name="title">
<string>Face Recognizer</string>
</property>
<widget class="QLineEdit" name="fr_threshold">
<property name="geometry">
<rect>
<x>140</x>
<y>30</y>
<width>113</width>
<height>25</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_10">
<property name="geometry">
<rect>
<x>56</x>
<y>60</y>
<width>81</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Model File:</string>
</property>
</widget>
<widget class="QLineEdit" name="fr_modelpath">
<property name="geometry">
<rect>
<x>140</x>
<y>60</y>
<width>471</width>
<height>25</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_14">
<property name="geometry">
<rect>
<x>20</x>
<y>30</y>
<width>121</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Score Threshold:</string>
</property>
</widget>
<widget class="QPushButton" name="settingselectmodelbtn">
<property name="geometry">
<rect>
<x>620</x>
<y>60</y>
<width>21</width>
<height>25</height>
</rect>
</property>
<property name="text">
<string>...</string>
</property>
</widget>
</widget>
</widget>
</widget>
</widget>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1230</width>
<height>23</height>
</rect>
</property>
</widget>
<widget class="QToolBar" name="mainToolBar">
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
</widget>
<widget class="QStatusBar" name="statusBar"/>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
<connections/>
</ui>