|
|
|
@ -0,0 +1,319 @@
|
|
|
|
|
<?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>1:MINIST随机抽取</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><html><head/><body><p><span style=" font-size:12pt; font-weight:600;">识别结果:</span></p><p><br/></p><p><br/></p><p><span style=" font-size:12pt; font-weight:600;">Softmax:</span></p></body></html></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><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
|
|
|
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
|
|
|
|
p, li { white-space: pre-wrap; }
|
|
|
|
|
</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;">
|
|
|
|
|
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Ubuntu'; font-weight:600;">使用说明</span></p>
|
|
|
|
|
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Ubuntu';">1、点击下拉列表进行模式选择,输入待识别数据后点击“识别”按键进行识别</span></p>
|
|
|
|
|
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Ubuntu';">2、经CNN网络计算后输出,显示识别结果与Softmax值</span></p>
|
|
|
|
|
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Ubuntu';">3、点击“清除数据”按键重新输入数据</span></p>
|
|
|
|
|
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Ubuntu';">模式1:随机从测试集抽取图像作为待识别数据,点击“MNIST抽取”按键抽取</span></p>
|
|
|
|
|
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Ubuntu';">模式2:使用鼠标在数据输入区域手写输入作为待识别数据</span></p></body></html></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>
|