You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

320 lines
9.1 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QDialog" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>600</height>
</rect>
</property>
<property name="windowTitle">
<string>手写数字识别GUI-v1.0 --by hamlin</string>
</property>
<widget class="QComboBox" name="cbBox_Mode">
<property name="geometry">
<rect>
<x>60</x>
<y>300</y>
<width>211</width>
<height>31</height>
</rect>
</property>
<item>
<property name="text">
<string>1MINIST随机抽取</string>
</property>
</item>
<item>
<property name="text">
<string>2鼠标手写输入</string>
</property>
</item>
</widget>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>60</x>
<y>270</y>
<width>80</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>模式选择</string>
</property>
</widget>
<widget class="QPushButton" name="pbtClear">
<property name="geometry">
<rect>
<x>80</x>
<y>440</y>
<width>120</width>
<height>30</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string>清除数据</string>
</property>
<property name="checkable">
<bool>false</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
<widget class="QPushButton" name="pbtGetMnist">
<property name="geometry">
<rect>
<x>80</x>
<y>380</y>
<width>120</width>
<height>30</height>
</rect>
</property>
<property name="text">
<string>MNIST抽取</string>
</property>
<property name="checkable">
<bool>false</bool>
</property>
</widget>
<widget class="QPushButton" name="pbtPredict">
<property name="geometry">
<rect>
<x>80</x>
<y>500</y>
<width>120</width>
<height>30</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string>识别</string>
</property>
</widget>
<widget class="QLabel" name="lbDataArea">
<property name="geometry">
<rect>
<x>540</x>
<y>350</y>
<width>224</width>
<height>224</height>
</rect>
</property>
<property name="mouseTracking">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 255);</string>
</property>
<property name="frameShape">
<enum>QFrame::Box</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Sunken</enum>
</property>
<property name="lineWidth">
<number>4</number>
</property>
<property name="midLineWidth">
<number>0</number>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
<x>260</x>
<y>340</y>
<width>91</width>
<height>181</height>
</rect>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-size:12pt; font-weight:600;&quot;&gt;识别结果:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-size:12pt; font-weight:600;&quot;&gt;Softmax&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
<widget class="QLabel" name="label_4">
<property name="geometry">
<rect>
<x>540</x>
<y>320</y>
<width>131</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>数据输入区域</string>
</property>
</widget>
<widget class="QLabel" name="label_5">
<property name="geometry">
<rect>
<x>20</x>
<y>10</y>
<width>711</width>
<height>241</height>
</rect>
</property>
<property name="text">
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Ubuntu'; font-weight:600;&quot;&gt;使用说明&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Ubuntu';&quot;&gt;1、点击下拉列表进行模式选择输入待识别数据后点击“识别”按键进行识别&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Ubuntu';&quot;&gt;2、经CNN网络计算后输出显示识别结果与Softmax值&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Ubuntu';&quot;&gt;3、点击“清除数据”按键重新输入数据&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Ubuntu';&quot;&gt;模式1随机从测试集抽取图像作为待识别数据点击“MNIST抽取”按键抽取&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Ubuntu';&quot;&gt;模式2使用鼠标在数据输入区域手写输入作为待识别数据&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
<widget class="QWidget" name="verticalLayoutWidget">
<property name="geometry">
<rect>
<x>540</x>
<y>350</y>
<width>221</width>
<height>221</height>
</rect>
</property>
<layout class="QVBoxLayout" name="dArea_Layout">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
</layout>
</widget>
<widget class="QLabel" name="lbResult">
<property name="geometry">
<rect>
<x>380</x>
<y>350</y>
<width>91</width>
<height>131</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>48</pointsize>
</font>
</property>
<property name="text">
<string>9</string>
</property>
</widget>
<widget class="QLabel" name="lbCofidence">
<property name="geometry">
<rect>
<x>360</x>
<y>500</y>
<width>151</width>
<height>21</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>0.99999999</string>
</property>
</widget>
</widget>
<resources/>
<connections>
<connection>
<sender>cbBox_Mode</sender>
<signal>activated(QString)</signal>
<receiver>MainWindow</receiver>
<slot>cbBox_Mode_Callback()</slot>
<hints>
<hint type="sourcelabel">
<x>178</x>
<y>317</y>
</hint>
<hint type="destinationlabel">
<x>158</x>
<y>168</y>
</hint>
</hints>
</connection>
<connection>
<sender>pbtClear</sender>
<signal>clicked()</signal>
<receiver>MainWindow</receiver>
<slot>pbtClear_Callback()</slot>
<hints>
<hint type="sourcelabel">
<x>131</x>
<y>460</y>
</hint>
<hint type="destinationlabel">
<x>105</x>
<y>341</y>
</hint>
</hints>
</connection>
<connection>
<sender>pbtPredict</sender>
<signal>clicked()</signal>
<receiver>MainWindow</receiver>
<slot>pbtPredict_Callback()</slot>
<hints>
<hint type="sourcelabel">
<x>157</x>
<y>517</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>542</y>
</hint>
</hints>
</connection>
<connection>
<sender>pbtGetMnist</sender>
<signal>clicked()</signal>
<receiver>MainWindow</receiver>
<slot>pbtGetMnist_Callback()</slot>
<hints>
<hint type="sourcelabel">
<x>102</x>
<y>399</y>
</hint>
<hint type="destinationlabel">
<x>29</x>
<y>401</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>cbBox_Mode_Callback()</slot>
<slot>pbtClear_Callback()</slot>
<slot>pbtPredict_Callback()</slot>
<slot>pbtGetMnist_Callback()</slot>
</slots>
</ui>