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.

84 lines
3.3 KiB

# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'GUI.ui'
#
# Created by: PyQt5 UI code generator 5.15.0
#
# 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
from PyQt5.QtGui import QPalette, QColor
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1048, 761)
font = QtGui.QFont()
font.setFamily("Bahnschrift SemiLight")
MainWindow.setFont(font)
MainWindow.setWindowOpacity(1.0)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.show_img = QtWidgets.QLabel(self.centralwidget)
self.show_img.setGeometry(QtCore.QRect(20, 10, 1011, 641))
self.show_img.setBaseSize(QtCore.QSize(0, 0))
self.show_img.setText("")
self.show_img.setObjectName("show_label")
background_color = QColor()
background_color.setNamedColor('#FFFAF0')
self.show_img.setAutoFillBackground(True)
palette = QPalette()
palette.setColor(QPalette.Window, background_color)
self.show_img.setPalette(palette)
self.start_detect = QtWidgets.QPushButton(self.centralwidget)
self.start_detect.setGeometry(QtCore.QRect(450, 670, 121, 51))
font = QtGui.QFont()
font.setFamily("Microsoft Tai Le")
font.setPointSize(11)
font.setBold(True)
font.setWeight(75)
self.start_detect.setFont(font)
self.start_detect.setObjectName("start_detect")
self.start_detect.setStyleSheet(
'''QPushButton{background:#FFFFFF;border-radius:5px;}QPushButton:hover{background:yellow;}''')
self.read_img = QtWidgets.QPushButton(self.centralwidget)
self.read_img.setGeometry(QtCore.QRect(130, 670, 121, 51))
font = QtGui.QFont()
font.setFamily("Microsoft Tai Le")
font.setPointSize(11)
font.setBold(True)
font.setWeight(75)
self.read_img.setFont(font)
self.read_img.setObjectName("read_img")
self.read_img.setStyleSheet(
'''QPushButton{background:#FFFFFF;border-radius:5px;}QPushButton:hover{background:yellow;}''')
self.show_text = QtWidgets.QTextBrowser(self.centralwidget)
self.show_text.setGeometry(QtCore.QRect(710, 680, 201, 41))
self.show_text.setObjectName("show_text")
font = QtGui.QFont()
font.setFamily("Microsoft Tai Le")
font.setPointSize(15)
font.setBold(True)
font.setWeight(75)
self.show_text.setFont(font)
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "花花检测"))
self.start_detect.setText(_translate("MainWindow", "开始检测"))
self.read_img.setText(_translate("MainWindow", "读入图片"))