123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- # -*- coding: utf-8 -*-
- # Form implementation generated from reading ui file 'Digit.ui'
- #
- # Created by: PyQt5 UI code generator 5.15.9
- #
- # WARNING: Any manual changes made to this file will be lost when pyuic5 is
- # run again. Do not edit this file unless you know what you are doing.
- from PyQt5 import QtCore, QtGui, QtWidgets
- class Ui_Digit(object):
- def setupUi(self, Digit):
- Digit.setObjectName("Digit")
- Digit.resize(921, 543)
- 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(30, 20, 271, 191))
- 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(100, 230, 93, 28))
- self.btn_capture.setObjectName("btn_capture")
- self.lbl_image = QtWidgets.QLabel(Digit)
- self.lbl_image.setGeometry(QtCore.QRect(520, 20, 271, 191))
- 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(610, 220, 92, 28))
- self.btn_recognize.setObjectName("btn_recognize")
- self.lbl_prob1 = QtWidgets.QLabel(Digit)
- self.lbl_prob1.setGeometry(QtCore.QRect(120, 500, 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(610, 500, 80, 26))
- self.lbl_prob2.setAlignment(QtCore.Qt.AlignCenter)
- self.lbl_prob2.setObjectName("lbl_prob2")
- self.lbl_top1 = QtWidgets.QLabel(Digit)
- self.lbl_top1.setGeometry(QtCore.QRect(40, 290, 221, 181))
- self.lbl_top1.setFrameShape(QtWidgets.QFrame.Box)
- 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(540, 290, 221, 181))
- self.lbl_top2.setFrameShape(QtWidgets.QFrame.Box)
- self.lbl_top2.setAlignment(QtCore.Qt.AlignCenter)
- self.lbl_top2.setObjectName("lbl_top2")
- self.lbl_result = QtWidgets.QLabel(Digit)
- self.lbl_result.setGeometry(QtCore.QRect(350, 350, 91, 61))
- self.lbl_result.setAlignment(QtCore.Qt.AlignCenter)
- self.lbl_result.setObjectName("lbl_result")
- self.retranslateUi(Digit)
- self.btn_capture.clicked.connect(Digit.capture_image) # type: ignore
- self.btn_recognize.clicked.connect(Digit.digit_recognize) # type: ignore
- 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_prob1.setText(_translate("Digit", "prob1"))
- self.lbl_prob2.setText(_translate("Digit", "prob2"))
- self.lbl_top1.setText(_translate("Digit", "抓取的图像"))
- self.lbl_top2.setText(_translate("Digit", "抓取的图像"))
- self.lbl_result.setText(_translate("Digit", "result"))
|