|
@@ -0,0 +1,82 @@
|
|
|
+# -*- coding: utf-8 -*-
|
|
|
+
|
|
|
+# Form implementation generated from reading ui file 'Digit.ui'
|
|
|
+#
|
|
|
+# Created by: PyQt5 UI code generator 5.14.1
|
|
|
+#
|
|
|
+# WARNING! All changes made in this file will be lost!
|
|
|
+
|
|
|
+
|
|
|
+from PyQt5 import QtCore, QtGui, QtWidgets
|
|
|
+
|
|
|
+
|
|
|
+class Ui_Digit(object):
|
|
|
+ def setupUi(self, Digit):
|
|
|
+ Digit.setObjectName("Digit")
|
|
|
+ Digit.resize(921, 259)
|
|
|
+ Digit.setStyleSheet("QPushButton{\n"
|
|
|
+" border-style:solid;\n"
|
|
|
+" border-width:1px;\n"
|
|
|
+" border-radius:8px;\n"
|
|
|
+" border-top-color:#FFFFFF;\n"
|
|
|
+" border-bottom-color:#888888;\n"
|
|
|
+" border-left-color:#FFFFFF;\n"
|
|
|
+" border-right-color:#888888;\n"
|
|
|
+"}\n"
|
|
|
+"QLabel#lbl_top1,#lbl_top2{\n"
|
|
|
+" color:red;\n"
|
|
|
+" font-size:24px;\n"
|
|
|
+"}\n"
|
|
|
+"QLabel#lbl_prob1,#lbl_prob2{\n"
|
|
|
+" color:blue;\n"
|
|
|
+"}")
|
|
|
+ self.lbl_video = QtWidgets.QLabel(Digit)
|
|
|
+ self.lbl_video.setGeometry(QtCore.QRect(10, 10, 320, 240))
|
|
|
+ self.lbl_video.setFrameShape(QtWidgets.QFrame.Box)
|
|
|
+ self.lbl_video.setFrameShadow(QtWidgets.QFrame.Raised)
|
|
|
+ self.lbl_video.setAlignment(QtCore.Qt.AlignCenter)
|
|
|
+ self.lbl_video.setObjectName("lbl_video")
|
|
|
+ self.btn_capture = QtWidgets.QPushButton(Digit)
|
|
|
+ self.btn_capture.setGeometry(QtCore.QRect(340, 120, 93, 28))
|
|
|
+ self.btn_capture.setObjectName("btn_capture")
|
|
|
+ self.lbl_image = QtWidgets.QLabel(Digit)
|
|
|
+ self.lbl_image.setGeometry(QtCore.QRect(450, 77, 160, 120))
|
|
|
+ self.lbl_image.setFrameShape(QtWidgets.QFrame.Box)
|
|
|
+ self.lbl_image.setAlignment(QtCore.Qt.AlignCenter)
|
|
|
+ self.lbl_image.setObjectName("lbl_image")
|
|
|
+ self.btn_recognize = QtWidgets.QPushButton(Digit)
|
|
|
+ self.btn_recognize.setGeometry(QtCore.QRect(630, 120, 92, 28))
|
|
|
+ self.btn_recognize.setObjectName("btn_recognize")
|
|
|
+ self.lbl_top1 = QtWidgets.QLabel(Digit)
|
|
|
+ self.lbl_top1.setGeometry(QtCore.QRect(740, 60, 60, 60))
|
|
|
+ self.lbl_top1.setAlignment(QtCore.Qt.AlignCenter)
|
|
|
+ self.lbl_top1.setObjectName("lbl_top1")
|
|
|
+ self.lbl_top2 = QtWidgets.QLabel(Digit)
|
|
|
+ self.lbl_top2.setGeometry(QtCore.QRect(740, 150, 60, 60))
|
|
|
+ self.lbl_top2.setAlignment(QtCore.Qt.AlignCenter)
|
|
|
+ self.lbl_top2.setObjectName("lbl_top2")
|
|
|
+ self.lbl_prob1 = QtWidgets.QLabel(Digit)
|
|
|
+ self.lbl_prob1.setGeometry(QtCore.QRect(830, 74, 80, 28))
|
|
|
+ self.lbl_prob1.setAlignment(QtCore.Qt.AlignCenter)
|
|
|
+ self.lbl_prob1.setObjectName("lbl_prob1")
|
|
|
+ self.lbl_prob2 = QtWidgets.QLabel(Digit)
|
|
|
+ self.lbl_prob2.setGeometry(QtCore.QRect(830, 165, 80, 26))
|
|
|
+ self.lbl_prob2.setAlignment(QtCore.Qt.AlignCenter)
|
|
|
+ self.lbl_prob2.setObjectName("lbl_prob2")
|
|
|
+
|
|
|
+ self.retranslateUi(Digit)
|
|
|
+ self.btn_capture.clicked.connect(Digit.capture_image)
|
|
|
+ self.btn_recognize.clicked.connect(Digit.digit_recognize)
|
|
|
+ QtCore.QMetaObject.connectSlotsByName(Digit)
|
|
|
+
|
|
|
+ def retranslateUi(self, Digit):
|
|
|
+ _translate = QtCore.QCoreApplication.translate
|
|
|
+ Digit.setWindowTitle(_translate("Digit", "手写数字识别程序"))
|
|
|
+ self.lbl_video.setText(_translate("Digit", "<font size=20 color=blue><b>视频显示区域</b></font>"))
|
|
|
+ self.btn_capture.setText(_translate("Digit", "抓取图像"))
|
|
|
+ self.lbl_image.setText(_translate("Digit", "抓取的图像"))
|
|
|
+ self.btn_recognize.setText(_translate("Digit", "数组识别"))
|
|
|
+ self.lbl_top1.setText(_translate("Digit", "top1"))
|
|
|
+ self.lbl_top2.setText(_translate("Digit", "top2"))
|
|
|
+ self.lbl_prob1.setText(_translate("Digit", "prob1"))
|
|
|
+ self.lbl_prob2.setText(_translate("Digit", "prob2"))
|