YOLOv5/v8车牌识别系统,QT可视化界面,可更换模型,更换.pt文件可以可视化其他深度学习项目,详细环境搭建+视频展示
CSDN 2024-07-20 17:05:02 阅读 52
yolov5/yolov8车牌识别2.0可视化QT界面
平台可更换pt模型,适用于所有的识别,不仅仅局限车牌识别。
runs文件夹中,存放训练和评估的结果图
环境安装:
请按照给定的python版本配置环境,否则可能会因依赖不兼容而出错,
在文件目录下cmd进入终端
(1)使用anaconda新建python3.10环境:
conda create -n env_rec python=3.10
(2)激活创建的环境:
conda activate env_rec
(3)使用pip安装所需的依赖,可通过requirements.txt:
pip install -r requirements.txt
在settings中找到project python interpreter 点击Add Interpreter
点击conda,在Use existing environment中选择刚才创建的虚拟环境 ,最后点击确定。如果conda Executable中路径没有,那就把anaconda3的路径添加上
程序展示:
配置完环境之后运行run_main_login.py,就会出现QT界面,注册登录
左侧可以选择图片或者视频,还可以开启摄像头、切换模型。
详细代码订阅专栏获取:
2024年机器学习&深度学习千例_人工智能_SYBH的博客-CSDN博客
核心代码:
run_main_login.py
# -*- coding: utf-8 -*-
import os # 导入os模块,用于处理操作系统相关的功能
from QtFusion.config import QF_Config
from sys import argv, exit # 导入用于处理命令行参数和退出程序的模块
from PySide6.QtWidgets import QApplication # 导入用于创建应用程序和主窗口的类
import warnings
QF_Config.set_verbose(False) # 设置不显示提示信息
os.environ["QT_FONT_DPI"] = "96" # 设置环境变量,修复高DPI和缩放超过100%时的问题
warnings.filterwarnings('ignore')
if __name__ == '__main__': # 确保该模块被直接运行时才执行以下代码
from System_login import RecMainWindow_login # 导入自定义的主窗口类
app = QApplication(argv) # 创建一个QApplication对象,它是所有Qt应用程序的基础
win = RecMainWindow_login() # 创建一个FlowerMainWindow对象,它是我们自定义的主窗口类的实例
win.showTime() # 调用主窗口的showTime方法,显示当前时间
exit(app.exec()) # 进入应用程序的主循环,并在退出时返回状态码
LPRNet.py
import torch.nn as nn
import torch
CHARS = ['京', '沪', '津', '渝', '冀', '晋', '蒙', '辽', '吉', '黑',
'苏', '浙', '皖', '闽', '赣', '鲁', '豫', '鄂', '湘', '粤',
'桂', '琼', '川', '贵', '云', '藏', '陕', '甘', '青', '宁',
'新',
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K',
'L', 'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'U', 'V',
'W', 'X', 'Y', 'Z', 'I', 'O', '-'
]
class small_basic_block(nn.Module):
def __init__(self, ch_in, ch_out):
super(small_basic_block, self).__init__()
self.block = nn.Sequential(
nn.Conv2d(ch_in, ch_out // 4, kernel_size=1),
nn.ReLU(),
nn.Conv2d(ch_out // 4, ch_out // 4, kernel_size=(3, 1), padding=(1, 0)),
nn.ReLU(),
nn.Conv2d(ch_out // 4, ch_out // 4, kernel_size=(1, 3), padding=(0, 1)),
nn.ReLU(),
nn.Conv2d(ch_out // 4, ch_out, kernel_size=1),
)
def forward(self, x):
return self.block(x)
class LPRNet(nn.Module):
def __init__(self, lpr_max_len, phase, class_num, dropout_rate):
super(LPRNet, self).__init__()
self.phase = phase
self.lpr_max_len = lpr_max_len
self.class_num = class_num
self.backbone = nn.Sequential(
nn.Conv2d(in_channels=3, out_channels=64, kernel_size=3, stride=1), # 0
nn.BatchNorm2d(num_features=64),
nn.ReLU(), # 2
nn.MaxPool3d(kernel_size=(1, 3, 3), stride=(1, 1, 1)),
small_basic_block(ch_in=64, ch_out=128), # *** 4 ***
nn.BatchNorm2d(num_features=128),
nn.ReLU(), # 6
nn.MaxPool3d(kernel_size=(1, 3, 3), stride=(2, 1, 2)),
small_basic_block(ch_in=64, ch_out=256), # 8
nn.BatchNorm2d(num_features=256),
nn.ReLU(), # 10
small_basic_block(ch_in=256, ch_out=256), # *** 11 ***
nn.BatchNorm2d(num_features=256), # 12
nn.ReLU(),
nn.MaxPool3d(kernel_size=(1, 3, 3), stride=(4, 1, 2)), # 14
nn.Dropout(dropout_rate),
nn.Conv2d(in_channels=64, out_channels=256, kernel_size=(1, 4), stride=1), # 16
nn.BatchNorm2d(num_features=256),
nn.ReLU(), # 18
nn.Dropout(dropout_rate),
nn.Conv2d(in_channels=256, out_channels=class_num, kernel_size=(13, 1), stride=1), # 20
nn.BatchNorm2d(num_features=class_num),
nn.ReLU(), # *** 22 ***
)
self.container = nn.Sequential(
nn.Conv2d(in_channels=448 + self.class_num, out_channels=self.class_num, kernel_size=(1, 1), stride=(1, 1)),
# nn.BatchNorm2d(num_features=self.class_num),
# nn.ReLU(),
# nn.Conv2d(in_channels=self.class_num, out_channels=self.lpr_max_len+1, kernel_size=3, stride=2),
# nn.ReLU(),
)
def forward(self, x):
keep_features = list()
for i, layer in enumerate(self.backbone.children()):
x = layer(x)
if i in [2, 6, 13, 22]: # [2, 4, 8, 11, 22]
keep_features.append(x)
global_context = list()
for i, f in enumerate(keep_features):
if i in [0, 1]:
f = nn.AvgPool2d(kernel_size=5, stride=5)(f)
if i in [2]:
f = nn.AvgPool2d(kernel_size=(4, 10), stride=(4, 2))(f)
f_pow = torch.pow(f, 2)
f_mean = torch.mean(f_pow)
f = torch.div(f, f_mean)
global_context.append(f)
x = torch.cat(global_context, 1)
x = self.container(x)
logits = torch.mean(x, dim=2)
return logits
# def build_lprnet(lpr_max_len=8, phase=False, class_num=66, dropout_rate=0.5):
#
# Net = LPRNet(lpr_max_len, phase, class_num, dropout_rate)
#
# if phase == "train":
# return Net.train()
# else:
# return Net.eval()
QT界面
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'Recognition_UI.ui'
##
## Created by: Qt User Interface Compiler version 6.7.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
QMetaObject, QObject, QPoint, QRect,
QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QAction, QBrush, QColor, QConicalGradient,
QCursor, QFont, QFontDatabase, QGradient,
QIcon, QImage, QKeySequence, QLinearGradient,
QPainter, QPalette, QPixmap, QRadialGradient,
QTransform)
from PySide6.QtWidgets import (QAbstractScrollArea, QApplication, QComboBox, QFrame,
QHBoxLayout, QHeaderView, QLabel, QLayout,
QMainWindow, QProgressBar, QPushButton, QSizePolicy,
QSlider, QStackedWidget, QTabWidget, QTableWidget,
QTableWidgetItem, QTextEdit, QToolButton, QVBoxLayout,
QWidget)
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
if not MainWindow.objectName():
MainWindow.setObjectName(u"MainWindow")
MainWindow.setWindowModality(Qt.NonModal)
MainWindow.resize(1280, 812)
MainWindow.setMinimumSize(QSize(1280, 812))
MainWindow.setMaximumSize(QSize(1280, 812))
font = QFont()
font.setFamilies([u"\u534e\u6587\u4eff\u5b8b"])
MainWindow.setFont(font)
icon = QIcon()
icon.addFile(u":/images/icons/user.png", QSize(), QIcon.Normal, QIcon.Off)
MainWindow.setWindowIcon(icon)
MainWindow.setAutoFillBackground(False)
MainWindow.setTabShape(QTabWidget.Rounded)
self.actionGoogle_Translate = QAction(MainWindow)
self.actionGoogle_Translate.setObjectName(u"actionGoogle_Translate")
self.actionHTML_type = QAction(MainWindow)
self.actionHTML_type.setObjectName(u"actionHTML_type")
self.actionsoftware_version = QAction(MainWindow)
self.actionsoftware_version.setObjectName(u"actionsoftware_version")
self.centralwidget = QWidget(MainWindow)
self.centralwidget.setObjectName(u"centralwidget")
self.centralwidget.setStyleSheet(u"")
self.horizontalLayout = QHBoxLayout(self.centralwidget)
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.Layout_main = QVBoxLayout()
self.Layout_main.setObjectName(u"Layout_main")
self.title_bar = QFrame(self.centralwidget)
self.title_bar.setObjectName(u"title_bar")
self.title_bar.setStyleSheet(u"")
self.horizontalLayout_12 = QHBoxLayout(self.title_bar)
self.horizontalLayout_12.setObjectName(u"horizontalLayout_12")
self.horizontalLayout_12.setSizeConstraint(QLayout.SetDefaultConstraint)
self.horizontalLayout_12.setContentsMargins(-1, -1, 50, -1)
self.toolMenu = QHBoxLayout()
self.toolMenu.setObjectName(u"toolMenu")
self.toolButton_saveing = QToolButton(self.title_bar)
self.toolButton_saveing.setObjectName(u"toolButton_saveing")
self.toolButton_saveing.setMaximumSize(QSize(30, 30))
self.toolButton_saveing.setCursor(QCursor(Qt.PointingHandCursor))
self.toolButton_saveing.setAutoFillBackground(False)
icon1 = QIcon()
icon1.addFile(u":/images/icons/save.png", QSize(), QIcon.Normal, QIcon.Off)
self.toolButton_saveing.setIcon(icon1)
self.toolButton_saveing.setIconSize(QSize(50, 39))
self.toolButton_saveing.setPopupMode(QToolButton.DelayedPopup)
self.toolButton_saveing.setToolButtonStyle(Qt.ToolButtonTextUnderIcon)
self.toolButton_saveing.setAutoRaise(False)
self.toolButton_saveing.setArrowType(Qt.NoArrow)
self.toolMenu.addWidget(self.toolButton_saveing)
self.horizontalLayout_12.addLayout(self.toolMenu)
self.pushButton = QPushButton(self.title_bar)
self.pushButton.setObjectName(u"pushButton")
sizePolicy = QSizePolicy(QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed)
sizePolicy.setHorizontalStretch(8)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton.sizePolicy().hasHeightForWidth())
self.pushButton.setSizePolicy(sizePolicy)
self.pushButton.setStyleSheet(u"background-color:transparent;\n"
"font: 15pt \"\u5e7c\u5706\";")
self.horizontalLayout_12.addWidget(self.pushButton)
self.Layout_main.addWidget(self.title_bar)
self.Layout_contain = QHBoxLayout()
self.Layout_contain.setObjectName(u"Layout_contain")
self.Sidebar = QWidget(self.centralwidget)
self.Sidebar.setObjectName(u"Sidebar")
self.Sidebar.setStyleSheet(u"")
self.verticalLayout_3 = QVBoxLayout(self.Sidebar)
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
self.verticalLayout_3.setSizeConstraint(QLayout.SetDefaultConstraint)
self.verticalLayout_3.setContentsMargins(-1, -1, -1, 9)
self.frame = QFrame(self.Sidebar)
self.frame.setObjectName(u"frame")
self.frame.setMinimumSize(QSize(216, 300))
self.frame.setFrameShape(QFrame.StyledPanel)
self.frame.setFrameShadow(QFrame.Raised)
self.toolButton_camera = QToolButton(self.frame)
self.toolButton_camera.setObjectName(u"toolButton_camera")
self.toolButton_camera.setGeometry(QRect(0, 152, 40, 42))
self.toolButton_camera.setMinimumSize(QSize(40, 40))
self.toolButton_camera.setMaximumSize(QSize(45, 45))
self.toolButton_camera.setCursor(QCursor(Qt.PointingHandCursor))
self.toolButton_camera.setAutoFillBackground(False)
icon2 = QIcon()
icon2.addFile(u":/images/icons/g1.png", QSize(), QIcon.Normal, QIcon.Off)
self.toolButton_camera.setIcon(icon2)
self.toolButton_camera.setIconSize(QSize(50, 39))
self.toolButton_camera.setPopupMode(QToolButton.DelayedPopup)
self.toolButton_camera.setToolButtonStyle(Qt.ToolButtonTextUnderIcon)
self.toolButton_camera.setAutoRaise(False)
self.toolButton_camera.setArrowType(Qt.NoArrow)
self.textEdit_camera = QTextEdit(self.frame)
self.textEdit_camera.setObjectName(u"textEdit_camera")
self.textEdit_camera.setGeometry(QRect(50, 160, 161, 30))
sizePolicy1 = QSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Fixed)
sizePolicy1.setHorizontalStretch(0)
sizePolicy1.setVerticalStretch(0)
sizePolicy1.setHeightForWidth(self.textEdit_camera.sizePolicy().hasHeightForWidth())
self.textEdit_camera.setSizePolicy(sizePolicy1)
self.textEdit_camera.setMinimumSize(QSize(150, 30))
self.textEdit_camera.setMaximumSize(QSize(280, 40))
font1 = QFont()
font1.setFamilies([u"12pt \u534e\u4e3a\u4eff\u5b8b"])
font1.setPointSize(12)
font1.setBold(False)
font1.setItalic(False)
self.textEdit_camera.setFont(font1)
self.textEdit_camera.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
self.textEdit_camera.setHorizontalScrollBarPolicy(Qt.ScrollBarAsNeeded)
self.textEdit_camera.setLineWrapMode(QTextEdit.NoWrap)
self.textEdit_camera.setReadOnly(True)
self.toolButton_file = QToolButton(self.frame)
self.toolButton_file.setObjectName(u"toolButton_file")
self.toolButton_file.setGeometry(QRect(0, 54, 40, 42))
self.toolButton_file.setMinimumSize(QSize(40, 40))
self.toolButton_file.setMaximumSize(QSize(45, 45))
self.toolButton_file.setCursor(QCursor(Qt.PointingHandCursor))
self.toolButton_file.setAutoFillBackground(False)
icon3 = QIcon()
icon3.addFile(u":/images/icons/recovery.png", QSize(), QIcon.Normal, QIcon.Off)
self.toolButton_file.setIcon(icon3)
self.toolButton_file.setIconSize(QSize(50, 40))
self.toolButton_file.setPopupMode(QToolButton.DelayedPopup)
self.toolButton_file.setToolButtonStyle(Qt.ToolButtonTextUnderIcon)
self.toolButton_file.setAutoRaise(False)
self.toolButton_file.setArrowType(Qt.NoArrow)
self.textEdit_image = QTextEdit(self.frame)
self.textEdit_image.setObjectName(u"textEdit_image")
self.textEdit_image.setGeometry(QRect(50, 61, 161, 30))
sizePolicy1.setHeightForWidth(self.textEdit_image.sizePolicy().hasHeightForWidth())
self.textEdit_image.setSizePolicy(sizePolicy1)
self.textEdit_image.setMinimumSize(QSize(150, 30))
self.textEdit_image.setMaximumSize(QSize(280, 40))
self.textEdit_image.setFont(font1)
self.textEdit_image.setLayoutDirection(Qt.LeftToRight)
self.textEdit_image.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
self.textEdit_image.setHorizontalScrollBarPolicy(Qt.ScrollBarAsNeeded)
self.textEdit_image.setLineWrapMode(QTextEdit.NoWrap)
self.textEdit_image.setReadOnly(True)
self.toolButton_model = QToolButton(self.frame)
self.toolButton_model.setObjectName(u"toolButton_model")
self.toolButton_model.setGeometry(QRect(0, 258, 40, 40))
self.toolButton_model.setMinimumSize(QSize(40, 40))
self.toolButton_model.setMaximumSize(QSize(45, 45))
self.toolButton_model.setCursor(QCursor(Qt.PointingHandCursor))
self.toolButton_model.setAutoFillBackground(False)
icon4 = QIcon()
icon4.addFile(u":/images/icons/model.png", QSize(), QIcon.Normal, QIcon.Off)
self.toolButton_model.setIcon(icon4)
self.toolButton_model.setIconSize(QSize(40, 39))
self.toolButton_model.setPopupMode(QToolButton.DelayedPopup)
self.toolButton_model.setToolButtonStyle(Qt.ToolButtonTextUnderIcon)
self.toolButton_model.setAutoRaise(False)
self.toolButton_model.setArrowType(Qt.NoArrow)
self.textEdit_model = QTextEdit(self.frame)
self.textEdit_model.setObjectName(u"textEdit_model")
self.textEdit_model.setGeometry(QRect(50, 262, 161, 30))
sizePolicy1.setHeightForWidth(self.textEdit_model.sizePolicy().hasHeightForWidth())
self.textEdit_model.setSizePolicy(sizePolicy1)
self.textEdit_model.setMinimumSize(QSize(150, 30))
self.textEdit_model.setMaximumSize(QSize(280, 40))
self.textEdit_model.setFont(font1)
self.textEdit_model.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
self.textEdit_model.setHorizontalScrollBarPolicy(Qt.ScrollBarAsNeeded)
self.textEdit_model.setLineWrapMode(QTextEdit.NoWrap)
self.textEdit_model.setReadOnly(True)
self.toolButton_folder = QToolButton(self.frame)
self.toolButton_folder.setObjectName(u"toolButton_folder")
self.toolButton_folder.setGeometry(QRect(0, 102, 40, 40))
self.toolButton_folder.setMinimumSize(QSize(40, 40))
self.toolButton_folder.setMaximumSize(QSize(45, 45))
self.toolButton_folder.setCursor(QCursor(Qt.PointingHandCursor))
self.toolButton_folder.setAutoFillBackground(False)
icon5 = QIcon()
icon5.addFile(u":/images/icons/folder.png", QSize(), QIcon.Normal, QIcon.Off)
self.toolButton_folder.setIcon(icon5)
self.toolButton_folder.setIconSize(QSize(50, 39))
self.toolButton_folder.setPopupMode(QToolButton.DelayedPopup)
self.toolButton_folder.setToolButtonStyle(Qt.ToolButtonTextUnderIcon)
self.toolButton_folder.setAutoRaise(False)
self.toolButton_folder.setArrowType(Qt.NoArrow)
self.textEdit_imgFolder = QTextEdit(self.frame)
self.textEdit_imgFolder.setObjectName(u"textEdit_imgFolder")
self.textEdit_imgFolder.setGeometry(QRect(50, 110, 161, 30))
sizePolicy1.setHeightForWidth(self.textEdit_imgFolder.sizePolicy().hasHeightForWidth())
self.textEdit_imgFolder.setSizePolicy(sizePolicy1)
self.textEdit_imgFolder.setMinimumSize(QSize(150, 30))
self.textEdit_imgFolder.setMaximumSize(QSize(280, 40))
self.textEdit_imgFolder.setFont(font1)
self.textEdit_imgFolder.setLayoutDirection(Qt.LeftToRight)
self.textEdit_imgFolder.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
self.textEdit_imgFolder.setHorizontalScrollBarPolicy(Qt.ScrollBarAsNeeded)
self.textEdit_imgFolder.setLineWrapMode(QTextEdit.NoWrap)
self.textEdit_imgFolder.setReadOnly(True)
self.toolButton_video = QToolButton(self.frame)
self.toolButton_video.setObjectName(u"toolButton_video")
self.toolButton_video.setGeometry(QRect(0, 204, 40, 40))
self.toolButton_video.setMinimumSize(QSize(40, 40))
self.toolButton_video.setMaximumSize(QSize(45, 45))
self.toolButton_video.setCursor(QCursor(Qt.PointingHandCursor))
self.toolButton_video.setAutoFillBackground(False)
icon6 = QIcon()
icon6.addFile(u":/images/icons/video.png", QSize(), QIcon.Normal, QIcon.Off)
self.toolButton_video.setIcon(icon6)
self.toolButton_video.setIconSize(QSize(40, 40))
self.toolButton_video.setPopupMode(QToolButton.DelayedPopup)
self.toolButton_video.setToolButtonStyle(Qt.ToolButtonTextUnderIcon)
self.toolButton_video.setAutoRaise(False)
self.toolButton_video.setArrowType(Qt.NoArrow)
self.textEdit_video = QTextEdit(self.frame)
self.textEdit_video.setObjectName(u"textEdit_video")
self.textEdit_video.setGeometry(QRect(50, 210, 161, 30))
sizePolicy1.setHeightForWidth(self.textEdit_video.sizePolicy().hasHeightForWidth())
self.textEdit_video.setSizePolicy(sizePolicy1)
self.textEdit_video.setMinimumSize(QSize(150, 30))
self.textEdit_video.setMaximumSize(QSize(280, 40))
self.textEdit_video.setFont(font1)
self.textEdit_video.setLayoutDirection(Qt.LeftToRight)
self.textEdit_video.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
self.textEdit_video.setHorizontalScrollBarPolicy(Qt.ScrollBarAsNeeded)
self.textEdit_video.setLineWrapMode(QTextEdit.NoWrap)
self.textEdit_video.setReadOnly(True)
self.loginTitle = QToolButton(self.frame)
self.loginTitle.setObjectName(u"loginTitle")
self.loginTitle.setGeometry(QRect(-2, 670, 45, 45))
self.loginTitle.setMinimumSize(QSize(45, 45))
self.loginTitle.setMaximumSize(QSize(45, 45))
self.loginTitle.setCursor(QCursor(Qt.PointingHandCursor))
self.loginTitle.setAutoFillBackground(False)
self.loginTitle.setStyleSheet(u"QToolButton{\n"
" border-image: url(:/login/icons/user.png);\n"
" background-color: transparent;\n"
" border-radius:5px;\n"
" border:3px;\n"
"}\n"
"\n"
"QToolButton::hover{\n"
" border:2px;\n"
"}\n"
"\n"
"QToolButton::pressed{\n"
" border:1px;\n"
"}")
icon7 = QIcon()
icon7.addFile(u":/images/C:/Users/24990/Desktop/user.png", QSize(), QIcon.Normal, QIcon.Off)
self.loginTitle.setIcon(icon7)
self.loginTitle.setIconSize(QSize(40, 40))
self.loginTitle.setPopupMode(QToolButton.DelayedPopup)
self.loginTitle.setToolButtonStyle(Qt.ToolButtonTextUnderIcon)
self.loginTitle.setAutoRaise(False)
self.loginTitle.setArrowType(Qt.NoArrow)
self.toolButton_menu = QToolButton(self.frame)
self.toolButton_menu.setObjectName(u"toolButton_menu")
self.toolButton_menu.setGeometry(QRect(0, 6, 40, 40))
self.toolButton_menu.setMinimumSize(QSize(40, 40))
self.toolButton_menu.setMaximumSize(QSize(45, 45))
self.toolButton_menu.setCursor(QCursor(Qt.PointingHandCursor))
self.toolButton_menu.setAutoFillBackground(False)
icon8 = QIcon()
icon8.addFile(u":/images/icons/burger-menu.png", QSize(), QIcon.Normal, QIcon.Off)
self.toolButton_menu.setIcon(icon8)
self.toolButton_menu.setIconSize(QSize(50, 39))
self.toolButton_menu.setPopupMode(QToolButton.DelayedPopup)
self.toolButton_menu.setToolButtonStyle(Qt.ToolButtonTextUnderIcon)
self.toolButton_menu.setAutoRaise(False)
self.toolButton_menu.setArrowType(Qt.NoArrow)
self.pushButton_hide = QPushButton(self.frame)
self.pushButton_hide.setObjectName(u"pushButton_hide")
self.pushButton_hide.setGeometry(QRect(50, 11, 161, 33))
self.pushButton_hide.setMinimumSize(QSize(150, 30))
self.pushButton_hide.setMaximumSize(QSize(280, 40))
self.pushButton_hide.setFont(font1)
self.pushButton_hide.setCursor(QCursor(Qt.PointingHandCursor))
self.verticalLayout_3.addWidget(self.frame)
self.Layout_contain.addWidget(self.Sidebar)
self.dispSide = QVBoxLayout()
self.dispSide.setObjectName(u"dispSide")
self.dispSide.setContentsMargins(-1, 15, -1, -1)
self.Layout_slide = QHBoxLayout()
self.Layout_slide.setSpacing(0)
self.Layout_slide.setObjectName(u"Layout_slide")
self.Layout_slide.setContentsMargins(45, -1, 55, -1)
self.layer_slide_conf = QHBoxLayout()
self.layer_slide_conf.setObjectName(u"layer_slide_conf")
self.layer_slide_conf.setContentsMargins(-1, -1, 15, -1)
self.label_slide_conf = QLabel(self.centralwidget)
self.label_slide_conf.setObjectName(u"label_slide_conf")
self.label_slide_conf.setMinimumSize(QSize(90, 35))
self.label_slide_conf.setMaximumSize(QSize(120, 16777215))
font2 = QFont()
font2.setFamilies([u"\u534e\u6587\u4eff\u5b8b"])
font2.setPointSize(14)
self.label_slide_conf.setFont(font2)
self.layer_slide_conf.addWidget(self.label_slide_conf)
self.slider_conf = QSlider(self.centralwidget)
self.slider_conf.setObjectName(u"slider_conf")
self.slider_conf.setStyleSheet(u"")
self.slider_conf.setValue(25)
self.slider_conf.setOrientation(Qt.Horizontal)
self.layer_slide_conf.addWidget(self.slider_conf)
self.Layout_slide.addLayout(self.layer_slide_conf)
self.layer_slide_iou = QHBoxLayout()
self.layer_slide_iou.setObjectName(u"layer_slide_iou")
self.layer_slide_iou.setContentsMargins(35, -1, -1, -1)
self.label_slide_iou = QLabel(self.centralwidget)
self.label_slide_iou.setObjectName(u"label_slide_iou")
self.label_slide_iou.setMinimumSize(QSize(60, 35))
self.label_slide_iou.setMaximumSize(QSize(70, 16777215))
self.label_slide_iou.setFont(font2)
self.layer_slide_iou.addWidget(self.label_slide_iou)
self.slider_iou = QSlider(self.centralwidget)
self.slider_iou.setObjectName(u"slider_iou")
self.slider_iou.setValue(50)
self.slider_iou.setOrientation(Qt.Horizontal)
self.layer_slide_iou.addWidget(self.slider_iou)
self.Layout_slide.addLayout(self.layer_slide_iou)
self.dispSide.addLayout(self.Layout_slide)
self.Layout_res = QHBoxLayout()
self.Layout_res.setObjectName(u"Layout_res")
self.Layout_res.setContentsMargins(40, -1, -1, -1)
self.label_picTime = QLabel(self.centralwidget)
self.label_picTime.setObjectName(u"label_picTime")
self.label_picTime.setMinimumSize(QSize(30, 30))
self.label_picTime.setMaximumSize(QSize(35, 35))
self.label_picTime.setStyleSheet(u"border-image: url(:/images/icons/net_speed.png);")
self.Layout_res.addWidget(self.label_picTime)
self.label_useTime = QLabel(self.centralwidget)
self.label_useTime.setObjectName(u"label_useTime")
self.label_useTime.setMaximumSize(QSize(120, 16777215))
self.label_useTime.setFont(font2)
self.Layout_res.addWidget(self.label_useTime)
self.label_time_result = QLabel(self.centralwidget)
self.label_time_result.setObjectName(u"label_time_result")
self.label_time_result.setMinimumSize(QSize(145, 0))
self.label_time_result.setFont(font2)
self.Layout_res.addWidget(self.label_time_result)
self.label_picNumber = QLabel(self.centralwidget)
self.label_picNumber.setObjectName(u"label_picNumber")
self.label_picNumber.setMinimumSize(QSize(30, 35))
self.label_picNumber.setMaximumSize(QSize(35, 35))
self.label_picNumber.setStyleSheet(u"border-image: url(:/images/icons/count.png);")
self.Layout_res.addWidget(self.label_picNumber)
self.label_objNum = QLabel(self.centralwidget)
self.label_objNum.setObjectName(u"label_objNum")
self.label_objNum.setMinimumSize(QSize(120, 0))
self.label_objNum.setMaximumSize(QSize(120, 16777215))
self.label_objNum.setFont(font2)
self.Layout_res.addWidget(self.label_objNum)
self.label_numer_result = QLabel(self.centralwidget)
self.label_numer_result.setObjectName(u"label_numer_result")
font3 = QFont()
font3.setFamilies([u"SimSun"])
font3.setPointSize(14)
self.label_numer_result.setFont(font3)
self.label_numer_result.setStyleSheet(u"color: rgb(255, 85, 0);")
self.Layout_res.addWidget(self.label_numer_result)
self.dispSide.addLayout(self.Layout_res)
self.label_display = QLabel(self.centralwidget)
self.label_display.setObjectName(u"label_display")
sizePolicy2 = QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Preferred)
sizePolicy2.setHorizontalStretch(0)
sizePolicy2.setVerticalStretch(0)
sizePolicy2.setHeightForWidth(self.label_display.sizePolicy().hasHeightForWidth())
self.label_display.setSizePolicy(sizePolicy2)
self.label_display.setMinimumSize(QSize(569, 454))
self.label_display.setMaximumSize(QSize(1152, 648))
font4 = QFont()
font4.setFamilies([u"\u6977\u4f53"])
font4.setPointSize(16)
self.label_display.setFont(font4)
self.label_display.setLayoutDirection(Qt.LeftToRight)
self.label_display.setStyleSheet(u"")
self.label_display.setAlignment(Qt.AlignCenter)
self.dispSide.addWidget(self.label_display)
self.progressBar = QProgressBar(self.centralwidget)
self.progressBar.setObjectName(u"progressBar")
self.progressBar.setMaximumSize(QSize(16777215, 6))
self.progressBar.setStyleSheet(u"")
self.progressBar.setValue(0)
self.progressBar.setTextVisible(False)
self.dispSide.addWidget(self.progressBar)
self.tableWidget = QTableWidget(self.centralwidget)
if (self.tableWidget.columnCount() < 5):
self.tableWidget.setColumnCount(5)
font5 = QFont()
font5.setFamilies([u"\u5fae\u8f6f\u96c5\u9ed1"])
font5.setPointSize(9)
font5.setBold(False)
__qtablewidgetitem = QTableWidgetItem()
__qtablewidgetitem.setFont(font5);
__qtablewidgetitem.setBackground(QColor(0, 0, 0, 0));
self.tableWidget.setHorizontalHeaderItem(0, __qtablewidgetitem)
__qtablewidgetitem1 = QTableWidgetItem()
__qtablewidgetitem1.setFont(font5);
self.tableWidget.setHorizontalHeaderItem(1, __qtablewidgetitem1)
__qtablewidgetitem2 = QTableWidgetItem()
__qtablewidgetitem2.setFont(font5);
self.tableWidget.setHorizontalHeaderItem(2, __qtablewidgetitem2)
font6 = QFont()
font6.setFamilies([u"\u5fae\u8f6f\u96c5\u9ed1"])
font6.setPointSize(9)
__qtablewidgetitem3 = QTableWidgetItem()
__qtablewidgetitem3.setFont(font6);
self.tableWidget.setHorizontalHeaderItem(3, __qtablewidgetitem3)
__qtablewidgetitem4 = QTableWidgetItem()
__qtablewidgetitem4.setFont(font6);
self.tableWidget.setHorizontalHeaderItem(4, __qtablewidgetitem4)
if (self.tableWidget.rowCount() < 6):
self.tableWidget.setRowCount(6)
__qtablewidgetitem5 = QTableWidgetItem()
self.tableWidget.setVerticalHeaderItem(0, __qtablewidgetitem5)
__qtablewidgetitem6 = QTableWidgetItem()
self.tableWidget.setVerticalHeaderItem(1, __qtablewidgetitem6)
__qtablewidgetitem7 = QTableWidgetItem()
self.tableWidget.setVerticalHeaderItem(2, __qtablewidgetitem7)
__qtablewidgetitem8 = QTableWidgetItem()
__qtablewidgetitem8.setTextAlignment(Qt.AlignCenter);
self.tableWidget.setItem(0, 0, __qtablewidgetitem8)
__qtablewidgetitem9 = QTableWidgetItem()
self.tableWidget.setItem(0, 1, __qtablewidgetitem9)
__qtablewidgetitem10 = QTableWidgetItem()
__qtablewidgetitem10.setTextAlignment(Qt.AlignCenter);
self.tableWidget.setItem(0, 2, __qtablewidgetitem10)
__qtablewidgetitem11 = QTableWidgetItem()
__qtablewidgetitem11.setTextAlignment(Qt.AlignCenter);
self.tableWidget.setItem(1, 0, __qtablewidgetitem11)
__qtablewidgetitem12 = QTableWidgetItem()
__qtablewidgetitem12.setTextAlignment(Qt.AlignCenter);
self.tableWidget.setItem(1, 2, __qtablewidgetitem12)
__qtablewidgetitem13 = QTableWidgetItem()
__qtablewidgetitem13.setTextAlignment(Qt.AlignCenter);
self.tableWidget.setItem(2, 0, __qtablewidgetitem13)
__qtablewidgetitem14 = QTableWidgetItem()
__qtablewidgetitem14.setTextAlignment(Qt.AlignCenter);
self.tableWidget.setItem(2, 2, __qtablewidgetitem14)
self.tableWidget.setObjectName(u"tableWidget")
sizePolicy3 = QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Expanding)
sizePolicy3.setHorizontalStretch(0)
sizePolicy3.setVerticalStretch(0)
sizePolicy3.setHeightForWidth(self.tableWidget.sizePolicy().hasHeightForWidth())
self.tableWidget.setSizePolicy(sizePolicy3)
self.tableWidget.setMinimumSize(QSize(569, 150))
self.tableWidget.setMaximumSize(QSize(1152, 180))
font7 = QFont()
font7.setFamilies([u"Microsoft YaHei UI"])
font7.setPointSize(10)
self.tableWidget.setFont(font7)
self.tableWidget.setVerticalScrollBarPolicy(Qt.ScrollBarAsNeeded)
self.tableWidget.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
self.tableWidget.setSizeAdjustPolicy(QAbstractScrollArea.AdjustIgnored)
self.tableWidget.setAlternatingRowColors(True)
self.tableWidget.setWordWrap(False)
self.tableWidget.setRowCount(6)
self.tableWidget.horizontalHeader().setVisible(True)
self.tableWidget.horizontalHeader().setCascadingSectionResizes(False)
self.tableWidget.horizontalHeader().setStretchLastSection(True)
self.tableWidget.verticalHeader().setVisible(False)
self.tableWidget.verticalHeader().setCascadingSectionResizes(False)
self.dispSide.addWidget(self.tableWidget)
self.Layout_contain.addLayout(self.dispSide)
self.stackPage = QStackedWidget(self.centralwidget)
self.stackPage.setObjectName(u"stackPage")
self.stackPage.setMaximumSize(QSize(400, 16777215))
self.stackPage.setStyleSheet(u"")
self.Page_result = QWidget()
self.Page_result.setObjectName(u"Page_result")
self.verticalLayout_2 = QVBoxLayout(self.Page_result)
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
self.pushButton_2 = QPushButton(self.Page_result)
self.pushButton_2.setObjectName(u"pushButton_2")
self.pushButton_2.setStyleSheet(u"\n"
"background-color:transparent;\n"
"font: 15pt \"\u5e7c\u5706\";")
self.verticalLayout_2.addWidget(self.pushButton_2)
self.Layout_cls_3 = QHBoxLayout()
self.Layout_cls_3.setObjectName(u"Layout_cls_3")
self.label_bar = QLabel(self.Page_result)
self.label_bar.setObjectName(u"label_bar")
self.label_bar.setMinimumSize(QSize(0, 120))
self.label_bar.setMaximumSize(QSize(300, 200))
self.label_bar.setStyleSheet(u"border-image: url(:/images/icons/weed_logo.png);")
self.label_bar.setMargin(5)
self.Layout_cls_3.addWidget(self.label_bar)
self.verticalLayout_2.addLayout(self.Layout_cls_3)
self.Layout_cls_2 = QHBoxLayout()
self.Layout_cls_2.setObjectName(u"Layout_cls_2")
self.label_picResult_2 = QLabel(self.Page_result)
self.label_picResult_2.setObjectName(u"label_picResult_2")
self.label_picResult_2.setMinimumSize(QSize(35, 35))
self.label_picResult_2.setMaximumSize(QSize(40, 40))
self.label_picResult_2.setStyleSheet(u"border-image: url(:/images/icons/folder3.png);")
self.Layout_cls_2.addWidget(self.label_picResult_2)
self.label_char = QLabel(self.Page_result)
self.label_char.setObjectName(u"label_char")
self.label_char.setFont(font2)
self.Layout_cls_2.addWidget(self.label_char)
self.label_plate_str = QLabel(self.Page_result)
self.label_plate_str.setObjectName(u"label_plate_str")
self.label_plate_str.setFont(font3)
self.label_plate_str.setStyleSheet(u"color: rgb(255, 85, 0);")
self.Layout_cls_2.addWidget(self.label_plate_str)
self.verticalLayout_2.addLayout(self.Layout_cls_2)
self.Layout_conf_2 = QHBoxLayout()
self.Layout_conf_2.setObjectName(u"Layout_conf_2")
self.label_picConf_2 = QLabel(self.Page_result)
self.label_picConf_2.setObjectName(u"label_picConf_2")
self.label_picConf_2.setMinimumSize(QSize(35, 35))
self.label_picConf_2.setMaximumSize(QSize(40, 40))
self.label_picConf_2.setStyleSheet(u"border-image: url(:/images/icons/Score3.png);")
self.Layout_conf_2.addWidget(self.label_picConf_2)
self.label_color = QLabel(self.Page_result)
self.label_color.setObjectName(u"label_color")
self.label_color.setFont(font2)
self.Layout_conf_2.addWidget(self.label_color)
self.label_plate_color = QLabel(self.Page_result)
self.label_plate_color.setObjectName(u"label_plate_color")
self.label_plate_color.setFont(font3)
self.label_plate_color.setStyleSheet(u"color: rgb(255, 85, 0);")
self.Layout_conf_2.addWidget(self.label_plate_color)
self.verticalLayout_2.addLayout(self.Layout_conf_2)
self.line = QFrame(self.Page_result)
self.line.setObjectName(u"line")
self.line.setFrameShape(QFrame.Shape.HLine)
self.line.setFrameShadow(QFrame.Shadow.Sunken)
self.verticalLayout_2.addWidget(self.line)
self.label = QLabel(self.Page_result)
self.label.setObjectName(u"label")
self.label.setMinimumSize(QSize(0, 20))
self.label.setMaximumSize(QSize(16777215, 20))
self.verticalLayout_2.addWidget(self.label)
self.Layout_obj = QHBoxLayout()
self.Layout_obj.setObjectName(u"Layout_obj")
self.Layout_obj.setContentsMargins(-1, 0, 200, -1)
self.label_picSelect = QLabel(self.Page_result)
self.label_picSelect.setObjectName(u"label_picSelect")
self.label_picSelect.setMinimumSize(QSize(30, 30))
self.label_picSelect.setMaximumSize(QSize(35, 35))
self.label_picSelect.setStyleSheet(u"border-image: url(:/images/icons/selection.png);")
self.Layout_obj.addWidget(self.label_picSelect)
self.comboBox_select = QComboBox(self.Page_result)
self.comboBox_select.addItem("")
self.comboBox_select.setObjectName(u"comboBox_select")
self.comboBox_select.setMinimumSize(QSize(0, 24))
self.comboBox_select.setMaximumSize(QSize(150, 28))
font8 = QFont()
font8.setFamilies([u"Consolas"])
font8.setPointSize(12)
font8.setBold(False)
font8.setItalic(True)
self.comboBox_select.setFont(font8)
self.comboBox_select.setFocusPolicy(Qt.ClickFocus)
self.comboBox_select.setIconSize(QSize(36, 36))
self.Layout_obj.addWidget(self.comboBox_select)
self.verticalLayout_2.addLayout(self.Layout_obj)
self.Layout_cls = QHBoxLayout()
self.Layout_cls.setObjectName(u"Layout_cls")
self.label_picResult = QLabel(self.Page_result)
self.label_picResult.setObjectName(u"label_picResult")
self.label_picResult.setMinimumSize(QSize(35, 35))
self.label_picResult.setMaximumSize(QSize(40, 40))
self.label_picResult.setStyleSheet(u"border-image: url(:/images/icons/result.png);")
self.Layout_cls.addWidget(self.label_picResult)
self.label_class = QLabel(self.Page_result)
self.label_class.setObjectName(u"label_class")
self.label_class.setFont(font2)
self.Layout_cls.addWidget(self.label_class)
self.label_class_result = QLabel(self.Page_result)
self.label_class_result.setObjectName(u"label_class_result")
self.label_class_result.setFont(font3)
self.label_class_result.setStyleSheet(u"color: rgb(255, 85, 0);")
self.Layout_cls.addWidget(self.label_class_result)
self.verticalLayout_2.addLayout(self.Layout_cls)
self.Layout_conf = QHBoxLayout()
self.Layout_conf.setObjectName(u"Layout_conf")
self.label_picConf = QLabel(self.Page_result)
self.label_picConf.setObjectName(u"label_picConf")
self.label_picConf.setMinimumSize(QSize(35, 35))
self.label_picConf.setMaximumSize(QSize(40, 40))
self.label_picConf.setStyleSheet(u"border-image: url(:/images/icons/Score.png);")
self.Layout_conf.addWidget(self.label_picConf)
self.label_conf = QLabel(self.Page_result)
self.label_conf.setObjectName(u"label_conf")
self.label_conf.setFont(font2)
self.Layout_conf.addWidget(self.label_conf)
self.label_score_result = QLabel(self.Page_result)
self.label_score_result.setObjectName(u"label_score_result")
self.label_score_result.setFont(font3)
self.label_score_result.setStyleSheet(u"color: rgb(255, 85, 0);")
self.Layout_conf.addWidget(self.label_score_result)
self.verticalLayout_2.addLayout(self.Layout_conf)
self.Layout_loc = QHBoxLayout()
self.Layout_loc.setObjectName(u"Layout_loc")
self.label_picLocation = QLabel(self.Page_result)
self.label_picLocation.setObjectName(u"label_picLocation")
self.label_picLocation.setMinimumSize(QSize(35, 35))
self.label_picLocation.setMaximumSize(QSize(40, 40))
self.label_picLocation.setStyleSheet(u"border-image: url(:/images/icons/Ordinateur.png);")
self.Layout_loc.addWidget(self.label_picLocation)
self.label_location = QLabel(self.Page_result)
self.label_location.setObjectName(u"label_location")
self.label_location.setFont(font2)
self.Layout_loc.addWidget(self.label_location)
self.verticalLayout_2.addLayout(self.Layout_loc)
self.Layout_xymin = QHBoxLayout()
self.Layout_xymin.setObjectName(u"Layout_xymin")
self.Layout_xymin.setContentsMargins(20, -1, -1, -1)
self.label_xmin = QLabel(self.Page_result)
self.label_xmin.setObjectName(u"label_xmin")
self.label_xmin.setFont(font8)
self.Layout_xymin.addWidget(self.label_xmin)
self.label_xmin_result = QLabel(self.Page_result)
self.label_xmin_result.setObjectName(u"label_xmin_result")
font9 = QFont()
font9.setFamilies([u"SimSun-ExtB"])
font9.setPointSize(12)
self.label_xmin_result.setFont(font9)
self.Layout_xymin.addWidget(self.label_xmin_result)
self.label_ymin = QLabel(self.Page_result)
self.label_ymin.setObjectName(u"label_ymin")
self.label_ymin.setFont(font8)
self.Layout_xymin.addWidget(self.label_ymin)
self.label_ymin_result = QLabel(self.Page_result)
self.label_ymin_result.setObjectName(u"label_ymin_result")
self.label_ymin_result.setFont(font9)
self.Layout_xymin.addWidget(self.label_ymin_result)
self.verticalLayout_2.addLayout(self.Layout_xymin)
self.Layout_xymax = QHBoxLayout()
self.Layout_xymax.setObjectName(u"Layout_xymax")
self.Layout_xymax.setContentsMargins(20, -1, -1, -1)
self.label_xmax = QLabel(self.Page_result)
self.label_xmax.setObjectName(u"label_xmax")
self.label_xmax.setFont(font8)
self.Layout_xymax.addWidget(self.label_xmax)
self.label_xmax_result = QLabel(self.Page_result)
self.label_xmax_result.setObjectName(u"label_xmax_result")
self.label_xmax_result.setFont(font9)
self.Layout_xymax.addWidget(self.label_xmax_result)
self.label_ymax = QLabel(self.Page_result)
self.label_ymax.setObjectName(u"label_ymax")
self.label_ymax.setFont(font8)
self.Layout_xymax.addWidget(self.label_ymax)
self.label_ymax_result = QLabel(self.Page_result)
self.label_ymax_result.setObjectName(u"label_ymax_result")
self.label_ymax_result.setFont(font9)
self.Layout_xymax.addWidget(self.label_ymax_result)
self.verticalLayout_2.addLayout(self.Layout_xymax)
self.stackPage.addWidget(self.Page_result)
self.Page_login = QWidget()
self.Page_login.setObjectName(u"Page_login")
self.pushButton_logout = QPushButton(self.Page_login)
self.pushButton_logout.setObjectName(u"pushButton_logout")
self.pushButton_logout.setGeometry(QRect(90, 428, 219, 43))
self.pushButton_logout.setStyleSheet(u"QPushButton{\n"
" background-color:rgb(26, 122, 244);\n"
" border-radius:10px; \n"
" border:1px;\n"
" font:17px \"\u5fae\u8f6f\u96c5\u9ed1\";\n"
" color:rgba(255,255,255);\n"
"}\n"
"\n"
"QPushButton::pressed{\n"
" border-color:rgba(255,255,255,30);\n"
" background-color: rgb(0, 170, 255);\n"
" border-style:inset;\n"
" color:rgba(0,0,0,100);\n"
"}\n"
"\n"
"QPushButton::hover{\n"
" background-color: rgb(73, 154, 237);\n"
" border-color:rgba(255,255,255,200);\n"
" color:rgba(255,255,255);\n"
"}")
self.label_loginPic = QLabel(self.Page_login)
self.label_loginPic.setObjectName(u"label_loginPic")
self.label_loginPic.setGeometry(QRect(160, 68, 85, 85))
self.label_loginPic.setMinimumSize(QSize(85, 85))
self.label_loginPic.setMaximumSize(QSize(85, 85))
font10 = QFont()
font10.setFamilies([u"Adobe \u9ed1\u4f53 Std R"])
font10.setPointSize(18)
font10.setBold(True)
font10.setItalic(False)
self.label_loginPic.setFont(font10)
self.label_loginPic.setStyleSheet(u"border-image: url(:/images/icons/user.png);\n"
"background-color: transparent;\n"
"border-radius:40px;")
self.label_loginPic.setAlignment(Qt.AlignCenter)
self.pushButton_login = QPushButton(self.Page_login)
self.pushButton_login.setObjectName(u"pushButton_login")
self.pushButton_login.setGeometry(QRect(90, 360, 219, 43))
self.pushButton_login.setStyleSheet(u"QPushButton{\n"
" background-color:rgb(26, 122, 244);\n"
" border-radius:10px; \n"
" border:1px;\n"
" font:17px \"\u5fae\u8f6f\u96c5\u9ed1\";\n"
" color:rgba(255,255,255);\n"
"}\n"
"\n"
"QPushButton::pressed{\n"
" border-color:rgba(255,255,255,30);\n"
" background-color: rgb(0, 170, 255);\n"
" border-style:inset;\n"
" color:rgba(0,0,0,100);\n"
"}\n"
"\n"
"QPushButton::hover{\n"
" background-color: rgb(73, 154, 237);\n"
" border-color:rgba(255,255,255,200);\n"
" color:rgba(255,255,255);\n"
"}")
self.toolButton_loadLogo = QToolButton(self.Page_login)
self.toolButton_loadLogo.setObjectName(u"toolButton_loadLogo")
self.toolButton_loadLogo.setGeometry(QRect(188, 160, 25, 27))
self.toolButton_loadLogo.setMaximumSize(QSize(45, 45))
self.toolButton_loadLogo.setCursor(QCursor(Qt.PointingHandCursor))
self.toolButton_loadLogo.setAutoFillBackground(False)
icon9 = QIcon()
icon9.addFile(u":/images/icons/gallery.png", QSize(), QIcon.Normal, QIcon.Off)
self.toolButton_loadLogo.setIcon(icon9)
self.toolButton_loadLogo.setIconSize(QSize(50, 39))
self.toolButton_loadLogo.setPopupMode(QToolButton.DelayedPopup)
self.toolButton_loadLogo.setToolButtonStyle(Qt.ToolButtonTextUnderIcon)
self.toolButton_loadLogo.setAutoRaise(False)
self.toolButton_loadLogo.setArrowType(Qt.NoArrow)
self.label_pic_name = QLabel(self.Page_login)
self.label_pic_name.setObjectName(u"label_pic_name")
self.label_pic_name.setGeometry(QRect(114, 230, 25, 29))
self.label_pic_name.setMaximumSize(QSize(85, 85))
self.label_pic_name.setFont(font10)
self.label_pic_name.setStyleSheet(u"border-image: url(:/images/icons/author.png);\n"
"background-color: transparent;\n"
"")
self.label_pic_name.setAlignment(Qt.AlignCenter)
self.label_person_name = QLabel(self.Page_login)
self.label_person_name.setObjectName(u"label_person_name")
self.label_person_name.setGeometry(QRect(142, 226, 161, 40))
self.label_person_name.setMinimumSize(QSize(0, 30))
font11 = QFont()
font11.setFamilies([u"Times new roman"])
font11.setPointSize(14)
font11.setBold(False)
font11.setItalic(False)
self.label_person_name.setFont(font11)
self.label_person_name.setStyleSheet(u"QLabel{font: 14pt \"Times new roman\";}")
self.label_person_name.setAlignment(Qt.AlignCenter)
self.pushButton_avatar = QPushButton(self.Page_login)
self.pushButton_avatar.setObjectName(u"pushButton_avatar")
self.pushButton_avatar.setGeometry(QRect(88, 290, 219, 43))
self.pushButton_avatar.setStyleSheet(u"QPushButton{\n"
" background-color:rgb(26, 122, 244);\n"
" border-radius:10px; \n"
" border:1px;\n"
" font:17px \"\u5fae\u8f6f\u96c5\u9ed1\";\n"
" color:rgba(255,255,255);\n"
"}\n"
"\n"
"QPushButton::pressed{\n"
" border-color:rgba(255,255,255,30);\n"
" background-color: rgb(0, 170, 255);\n"
" border-style:inset;\n"
" color:rgba(0,0,0,100);\n"
"}\n"
"\n"
"QPushButton::hover{\n"
" background-color: rgb(73, 154, 237);\n"
" border-color:rgba(255,255,255,200);\n"
" color:rgba(255,255,255);\n"
"}")
self.label_person_name_2 = QLabel(self.Page_login)
self.label_person_name_2.setObjectName(u"label_person_name_2")
self.label_person_name_2.setGeometry(QRect(90, 550, 221, 40))
self.label_person_name_2.setMinimumSize(QSize(0, 30))
self.label_person_name_2.setFont(font11)
self.label_person_name_2.setStyleSheet(u"QLabel{font: 14pt \"Times new roman\";}")
self.label_person_name_2.setAlignment(Qt.AlignCenter)
self.stackPage.addWidget(self.Page_login)
self.Layout_contain.addWidget(self.stackPage)
self.Layout_main.addLayout(self.Layout_contain)
self.horizontalLayout.addLayout(self.Layout_main)
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
self.stackPage.setCurrentIndex(0)
QMetaObject.connectSlotsByName(MainWindow)
# setupUi
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"\u6807\u9898", None))
#if QT_CONFIG(tooltip)
MainWindow.setToolTip("")
#endif // QT_CONFIG(tooltip)
self.actionGoogle_Translate.setText(QCoreApplication.translate("MainWindow", u"Google Translate", None))
self.actionHTML_type.setText(QCoreApplication.translate("MainWindow", u"HTML type", None))
self.actionsoftware_version.setText(QCoreApplication.translate("MainWindow", u"software version", None))
#if QT_CONFIG(tooltip)
self.toolButton_saveing.setToolTip(QCoreApplication.translate("MainWindow", u"\u4fdd\u5b58\u7ed3\u679c", None))
#endif // QT_CONFIG(tooltip)
self.toolButton_saveing.setText("")
self.pushButton.setText(QCoreApplication.translate("MainWindow", u"YOLOv8/v5\u8f66\u724c\u8bc6\u522b\u7cfb\u7edf", None))
#if QT_CONFIG(tooltip)
self.toolButton_camera.setToolTip(QCoreApplication.translate("MainWindow", u"\u5f00\u542f\u6444\u50cf\u5934", None))
#endif // QT_CONFIG(tooltip)
self.toolButton_camera.setText("")
self.textEdit_camera.setHtml(QCoreApplication.translate("MainWindow", u"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><meta charset=\"utf-8\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"hr { height: 1px; border-width: 0; }\n"
"li.unchecked::marker { content: \"\\2610\"; }\n"
"li.checked::marker { content: \"\\2612\"; }\n"
"</style></head><body style=\" font-family:'12pt \u534e\u4e3a\u4eff\u5b8b'; font-size:12pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:'Adobe Devanagari';\">\u6444\u50cf\u5934\u672a\u5f00\u542f</span></p></body></html>", None))
#if QT_CONFIG(tooltip)
self.toolButton_file.setToolTip(QCoreApplication.translate("MainWindow", u"\u9009\u62e9\u56fe\u7247", None))
#endif // QT_CONFIG(tooltip)
self.toolButton_file.setText("")
self.textEdit_image.setHtml(QCoreApplication.translate("MainWindow", u"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><meta charset=\"utf-8\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"hr { height: 1px; border-width: 0; }\n"
"li.unchecked::marker { content: \"\\2610\"; }\n"
"li.checked::marker { content: \"\\2612\"; }\n"
"</style></head><body style=\" font-family:'12pt \u534e\u4e3a\u4eff\u5b8b'; font-size:12pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:'Adobe Devanagari';\">\u9009\u62e9\u56fe\u7247\u6587\u4ef6</span></p></body></html>", None))
#if QT_CONFIG(tooltip)
self.toolButton_model.setToolTip(QCoreApplication.translate("MainWindow", u"\u4f7f\u7528\u9ed8\u8ba4\u6a21\u578b", None))
#endif // QT_CONFIG(tooltip)
self.toolButton_model.setText("")
self.textEdit_model.setHtml(QCoreApplication.translate("MainWindow", u"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><meta charset=\"utf-8\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"hr { height: 1px; border-width: 0; }\n"
"li.unchecked::marker { content: \"\\2610\"; }\n"
"li.checked::marker { content: \"\\2612\"; }\n"
"</style></head><body style=\" font-family:'12pt \u534e\u4e3a\u4eff\u5b8b'; font-size:12pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:'Adobe Devanagari';\">\u9009\u62e9\u6a21\u578b\u6587\u4ef6</span></p></body></html>", None))
#if QT_CONFIG(tooltip)
self.toolButton_folder.setToolTip(QCoreApplication.translate("MainWindow", u"\u9009\u62e9\u56fe\u7247\u6587\u4ef6\u5939", None))
#endif // QT_CONFIG(tooltip)
self.toolButton_folder.setText("")
self.textEdit_imgFolder.setHtml(QCoreApplication.translate("MainWindow", u"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><meta charset=\"utf-8\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"hr { height: 1px; border-width: 0; }\n"
"li.unchecked::marker { content: \"\\2610\"; }\n"
"li.checked::marker { content: \"\\2612\"; }\n"
"</style></head><body style=\" font-family:'12pt \u534e\u4e3a\u4eff\u5b8b'; font-size:12pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:'Adobe Devanagari';\">\u9009\u62e9\u56fe\u7247\u6587\u4ef6\u5939</span></p></body></html>", None))
#if QT_CONFIG(tooltip)
self.toolButton_video.setToolTip(QCoreApplication.translate("MainWindow", u"\u9009\u62e9\u89c6\u9891", None))
#endif // QT_CONFIG(tooltip)
self.toolButton_video.setText("")
self.textEdit_video.setHtml(QCoreApplication.translate("MainWindow", u"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><meta charset=\"utf-8\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"hr { height: 1px; border-width: 0; }\n"
"li.unchecked::marker { content: \"\\2610\"; }\n"
"li.checked::marker { content: \"\\2612\"; }\n"
"</style></head><body style=\" font-family:'12pt \u534e\u4e3a\u4eff\u5b8b'; font-size:12pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:'Adobe Devanagari';\">\u9009\u62e9\u89c6\u9891\u6587\u4ef6</span></p></body></html>", None))
#if QT_CONFIG(tooltip)
self.loginTitle.setToolTip(QCoreApplication.translate("MainWindow", u"\u767b\u5f55\u4fe1\u606f", None))
#endif // QT_CONFIG(tooltip)
self.loginTitle.setText("")
#if QT_CONFIG(tooltip)
self.toolButton_menu.setToolTip(QCoreApplication.translate("MainWindow", u"\u5f39\u51fa\u663e\u793a", None))
#endif // QT_CONFIG(tooltip)
self.toolButton_menu.setText("")
self.pushButton_hide.setText(QCoreApplication.translate("MainWindow", u"\u9690\u85cf\u663e\u793a", None))
self.label_slide_conf.setText(QCoreApplication.translate("MainWindow", u"<html><head/><body><p><span >CONF\uff1a</span></p></body></html>", None))
self.label_slide_iou.setText(QCoreApplication.translate("MainWindow", u"<html><head/><body><p>IOU\uff1a</p></body></html>", None))
self.label_picTime.setText("")
self.label_useTime.setText(QCoreApplication.translate("MainWindow", u"<html><head/><body><p><span >\u7528\u65f6\uff1a</span></p></body></html>", None))
self.label_time_result.setText(QCoreApplication.translate("MainWindow", u"0 s", None))
self.label_picNumber.setText("")
self.label_objNum.setText(QCoreApplication.translate("MainWindow", u"<html><head/><body><p>\u76ee\u6807\u6570\u76ee\uff1a</p></body></html>", None))
self.label_numer_result.setText(QCoreApplication.translate("MainWindow", u"0", None))
self.label_display.setText(QCoreApplication.translate("MainWindow", u"<html><head/><body><p align=\"center\"><br/></p></body></html>", None))
___qtablewidgetitem = self.tableWidget.horizontalHeaderItem(0)
___qtablewidgetitem.setText(QCoreApplication.translate("MainWindow", u"\u5e8f\u53f7", None));
___qtablewidgetitem1 = self.tableWidget.horizontalHeaderItem(1)
___qtablewidgetitem1.setText(QCoreApplication.translate("MainWindow", u"\u753b\u9762\u6807\u8bc6", None));
___qtablewidgetitem2 = self.tableWidget.horizontalHeaderItem(2)
___qtablewidgetitem2.setText(QCoreApplication.translate("MainWindow", u"\u7ed3\u679c", None));
___qtablewidgetitem3 = self.tableWidget.horizontalHeaderItem(3)
___qtablewidgetitem3.setText(QCoreApplication.translate("MainWindow", u"\u4f4d\u7f6e", None));
___qtablewidgetitem4 = self.tableWidget.horizontalHeaderItem(4)
___qtablewidgetitem4.setText(QCoreApplication.translate("MainWindow", u"\u8bc6\u522b\u5ea6", None));
___qtablewidgetitem5 = self.tableWidget.verticalHeaderItem(0)
___qtablewidgetitem5.setText(QCoreApplication.translate("MainWindow", u"0", None));
___qtablewidgetitem6 = self.tableWidget.verticalHeaderItem(1)
___qtablewidgetitem6.setText(QCoreApplication.translate("MainWindow", u"1", None));
___qtablewidgetitem7 = self.tableWidget.verticalHeaderItem(2)
___qtablewidgetitem7.setText(QCoreApplication.translate("MainWindow", u"2", None));
__sortingEnabled = self.tableWidget.isSortingEnabled()
self.tableWidget.setSortingEnabled(False)
self.tableWidget.setSortingEnabled(__sortingEnabled)
self.pushButton_2.setText(QCoreApplication.translate("MainWindow", u"CSDN\uff1a\u4eba\u5de5\u667a\u80fd_SYBH", None))
self.label_bar.setText("")
self.label_picResult_2.setText("")
self.label_char.setText(QCoreApplication.translate("MainWindow", u"<html><head/><body><p>\u8f66\u724c\u5b57\u7b26\uff1a</p></body></html>", None))
self.label_plate_str.setText(QCoreApplication.translate("MainWindow", u"\u7701XXXXXX", None))
self.label_picConf_2.setText("")
self.label_color.setText(QCoreApplication.translate("MainWindow", u"<html><head/><body><p>\u8f66\u724c\u989c\u8272\uff1a</p></body></html>", None))
self.label_plate_color.setText(QCoreApplication.translate("MainWindow", u"None", None))
self.label.setText("")
self.label_picSelect.setText("")
self.comboBox_select.setItemText(0, QCoreApplication.translate("MainWindow", u"\u6240\u6709\u76ee\u6807", None))
self.comboBox_select.setCurrentText(QCoreApplication.translate("MainWindow", u"\u6240\u6709\u76ee\u6807", None))
self.label_picResult.setText("")
self.label_class.setText(QCoreApplication.translate("MainWindow", u"<html><head/><body><p>\u7c7b\u522b\uff1a</p></body></html>", None))
self.label_class_result.setText(QCoreApplication.translate("MainWindow", u"0", None))
self.label_picConf.setText("")
self.label_conf.setText(QCoreApplication.translate("MainWindow", u"<html><head/><body><p>\u7f6e\u4fe1\u5ea6\uff1a</p></body></html>", None))
self.label_score_result.setText(QCoreApplication.translate("MainWindow", u"0", None))
self.label_picLocation.setText("")
self.label_location.setText(QCoreApplication.translate("MainWindow", u"<html><head/><body><p>\u4f4d \u7f6e\uff1a</p></body></html>", None))
self.label_xmin.setText(QCoreApplication.translate("MainWindow", u"xmin: ", None))
self.label_xmin_result.setText(QCoreApplication.translate("MainWindow", u"0", None))
self.label_ymin.setText(QCoreApplication.translate("MainWindow", u"ymin: ", None))
self.label_ymin_result.setText(QCoreApplication.translate("MainWindow", u"0", None))
self.label_xmax.setText(QCoreApplication.translate("MainWindow", u"xmax: ", None))
self.label_xmax_result.setText(QCoreApplication.translate("MainWindow", u"0", None))
self.label_ymax.setText(QCoreApplication.translate("MainWindow", u"ymax: ", None))
self.label_ymax_result.setText(QCoreApplication.translate("MainWindow", u"0", None))
self.pushButton_logout.setText(QCoreApplication.translate("MainWindow", u"\u6ce8\u9500\u8d26\u6237", None))
self.label_loginPic.setText("")
self.pushButton_login.setText(QCoreApplication.translate("MainWindow", u"\u91cd\u65b0\u767b\u5f55", None))
#if QT_CONFIG(tooltip)
self.toolButton_loadLogo.setToolTip(QCoreApplication.translate("MainWindow", u"\u4fdd\u5b58\u7ed3\u679c", None))
#endif // QT_CONFIG(tooltip)
self.toolButton_loadLogo.setText("")
self.label_pic_name.setText("")
#if QT_CONFIG(tooltip)
self.label_person_name.setToolTip(QCoreApplication.translate("MainWindow", u"<html><head/><body><p>www.zhihu.com/people/SYBH</p></body></html>", None))
#endif // QT_CONFIG(tooltip)
self.label_person_name.setText(QCoreApplication.translate("MainWindow", u"SYBH", None))
self.pushButton_avatar.setText(QCoreApplication.translate("MainWindow", u"\u4fee\u6539\u5934\u50cf", None))
#if QT_CONFIG(tooltip)
self.label_person_name_2.setToolTip(QCoreApplication.translate("MainWindow", u"<html><head/><body><p>www.zhihu.com/people/SYBH</p></body></html>", None))
#endif // QT_CONFIG(tooltip)
self.label_person_name_2.setText(QCoreApplication.translate("MainWindow", u"CSDN:\u4eba\u5de5\u667a\u80fd_SYBH", None))
# retranslateUi
登录界面
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'LoginForm.ui'
##
## Created by: Qt User Interface Compiler version 6.7.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
QMetaObject, QObject, QPoint, QRect,
QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
QFont, QFontDatabase, QGradient, QIcon,
QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QApplication, QCheckBox, QDialog, QFrame,
QLabel, QLineEdit, QPushButton, QSizePolicy,
QTabWidget, QToolButton, QWidget)
class Ui_Dialog(object):
def setupUi(self, Dialog):
if not Dialog.objectName():
Dialog.setObjectName(u"Dialog")
Dialog.resize(749, 482)
Dialog.setMinimumSize(QSize(749, 482))
Dialog.setMaximumSize(QSize(749, 482))
icon = QIcon()
icon.addFile(u":/login/icons/bird-logo.png", QSize(), QIcon.Normal, QIcon.Off)
Dialog.setWindowIcon(icon)
Dialog.setStyleSheet(u"background-color: rgb(255, 255, 255);")
self.frame = QFrame(Dialog)
self.frame.setObjectName(u"frame")
self.frame.setGeometry(QRect(0, 0, 747, 483))
self.frame.setFrameShape(QFrame.StyledPanel)
self.frame.setFrameShadow(QFrame.Raised)
self.btn_minimize = QPushButton(self.frame)
self.btn_minimize.setObjectName(u"btn_minimize")
self.btn_minimize.setGeometry(QRect(666, 8, 35, 31))
sizePolicy = QSizePolicy(QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.btn_minimize.sizePolicy().hasHeightForWidth())
self.btn_minimize.setSizePolicy(sizePolicy)
self.btn_minimize.setMinimumSize(QSize(25, 25))
self.btn_minimize.setMaximumSize(QSize(40, 16777215))
icon1 = QIcon()
icon1.addFile(u":/login/icons/minmax.png", QSize(), QIcon.Normal, QIcon.Off)
self.btn_minimize.setIcon(icon1)
self.label_movie = QLabel(self.frame)
self.label_movie.setObjectName(u"label_movie")
self.label_movie.setGeometry(QRect(6, 6, 321, 471))
sizePolicy1 = QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Preferred)
sizePolicy1.setHorizontalStretch(0)
sizePolicy1.setVerticalStretch(0)
sizePolicy1.setHeightForWidth(self.label_movie.sizePolicy().hasHeightForWidth())
self.label_movie.setSizePolicy(sizePolicy1)
font = QFont()
font.setFamilies([u"\u6977\u4f53"])
font.setPointSize(16)
self.label_movie.setFont(font)
self.label_movie.setLayoutDirection(Qt.LeftToRight)
self.label_movie.setStyleSheet(u"QLabel{\n"
"border-image: url(:/login/icons/sign.png);\n"
"}")
self.label_movie.setAlignment(Qt.AlignCenter)
self.tabWidget = QTabWidget(self.frame)
self.tabWidget.setObjectName(u"tabWidget")
self.tabWidget.setGeometry(QRect(326, 2, 417, 475))
self.tabWidget.setLayoutDirection(Qt.LeftToRight)
self.tabWidget.setAutoFillBackground(False)
self.tabWidget.setStyleSheet(u"\n"
"QTabWidget::pane{\n"
"min-width:70px;\n"
"min-height:25px;\n"
"border-top: 0px solid;\n"
" background-color: transparent;\n"
"}\n"
"\n"
"QTabBar::tab {\n"
"font-size:10px;\n"
"min-width:70px;\n"
"\n"
"min-height:25px;\n"
"\n"
"color: black;\n"
"\n"
"font:12px \"Microsoft YaHei\";\n"
"\n"
"border: -1px solid;\n"
"\n"
"\n"
"\n"
"}\n"
"\n"
"QTabBar::tab:selected{\n"
"\n"
"min-width:70px;\n"
"\n"
"min-height:25px;\n"
"color: black;\n"
"\n"
"font:11px \"Microsoft YaHei\";\n"
"\n"
"border: 0px solid;\n"
"\n"
"border-bottom: 0px solid;\n"
"\n"
"border-color: #4796f0;\n"
"\n"
"}")
self.tabWidget.setTabBarAutoHide(True)
self.tab_login = QWidget()
self.tab_login.setObjectName(u"tab_login")
self.checkBox_remenber = QCheckBox(self.tab_login)
self.checkBox_remenber.setObjectName(u"checkBox_remenber")
self.checkBox_remenber.setGeometry(QRect(66, 272, 115, 35))
self.checkBox_remenber.setStyleSheet(u"\n"
"QCheckBox{\n"
"font: 10pt \"\u5fae\u8f6f\u96c5\u9ed1\";\n"
"color: rgb(100, 100, 100);\n"
"spacing: 5px;\n"
"background-color: transparent;\n"
"}\n"
"\n"
"QCheckBox::indicator {\n"
"width: 18px;\n"
"height: 18px;\n"
"}\n"
"QCheckBox::indicator:unchecked {\n"
"border-image: url(:/login/icons/check.png);\n"
"}\n"
"\n"
"QCheckBox::indicator:checked {\n"
"border-image: url(:/login/icons/checked.png);\n"
"}\n"
" ")
self.checkBox_remenber.setIconSize(QSize(18, 18))
self.checkBox_remenber.setChecked(True)
self.lineEdit_password = QLineEdit(self.tab_login)
self.lineEdit_password.setObjectName(u"lineEdit_password")
self.lineEdit_password.setGeometry(QRect(100, 208, 261, 41))
font1 = QFont()
font1.setFamilies([u"\u5fae\u8f6f\u96c5\u9ed1"])
font1.setPointSize(12)
self.lineEdit_password.setFont(font1)
self.label_log_passwordBack = QLabel(self.tab_login)
self.label_log_passwordBack.setObjectName(u"label_log_passwordBack")
self.label_log_passwordBack.setGeometry(QRect(52, 208, 319, 43))
self.label_log_passwordBack.setStyleSheet(u"border-image: url(:/images/icons/logo1.png);")
self.label_log_user = QLabel(self.tab_login)
self.label_log_user.setObjectName(u"label_log_user")
self.label_log_user.setGeometry(QRect(64, 146, 21, 21))
self.label_log_user.setStyleSheet(u"border-image: url(:/login/icons/logo2.png);\n"
"background-color: transparent;")
self.lineEdit_user_log = QLineEdit(self.tab_login)
self.lineEdit_user_log.setObjectName(u"lineEdit_user_log")
self.lineEdit_user_log.setGeometry(QRect(100, 136, 259, 41))
font2 = QFont()
font2.setFamilies([u"\u5fae\u8f6f\u96c5\u9ed1"])
font2.setPointSize(12)
font2.setBold(False)
font2.setItalic(False)
self.lineEdit_user_log.setFont(font2)
self.toolButton_forgetCode = QToolButton(self.tab_login)
self.toolButton_forgetCode.setObjectName(u"toolButton_forgetCode")
self.toolButton_forgetCode.setGeometry(QRect(252, 272, 121, 33))
self.toolButton_forgetCode.setCursor(QCursor(Qt.PointingHandCursor))
self.toolButton_forgetCode.setIconSize(QSize(16, 16))
self.label_log_password = QLabel(self.tab_login)
self.label_log_password.setObjectName(u"label_log_password")
self.label_log_password.setGeometry(QRect(64, 220, 21, 21))
self.label_log_password.setStyleSheet(u"border-image: url(:/login/icons/logo3.png);\n"
"background-color: transparent;")
self.pushButton_login = QPushButton(self.tab_login)
self.pushButton_login.setObjectName(u"pushButton_login")
self.pushButton_login.setGeometry(QRect(76, 338, 261, 43))
self.pushButton_login.setStyleSheet(u"QPushButton{\n"
" background-color:rgb(26, 122, 244);\n"
" border-radius:10px; \n"
" border:1px;\n"
" font:17px \"\u5fae\u8f6f\u96c5\u9ed1\";\n"
" color:rgba(255,255,255);\n"
"}\n"
"\n"
"QPushButton::pressed{\n"
" border-color:rgba(255,255,255,30);\n"
" background-color: rgb(0, 170, 255);\n"
" border-style:inset;\n"
" color:rgba(0,0,0,100);\n"
"}\n"
"\n"
"QPushButton::hover{\n"
" background-color: rgb(73, 154, 237);\n"
" border-color:rgba(255,255,255,200);\n"
" color:rgba(255,255,255);\n"
"}")
self.label_pic = QLabel(self.tab_login)
self.label_pic.setObjectName(u"label_pic")
self.label_pic.setGeometry(QRect(166, 16, 85, 85))
self.label_pic.setMinimumSize(QSize(85, 85))
self.label_pic.setMaximumSize(QSize(85, 85))
font3 = QFont()
font3.setFamilies([u"Adobe \u9ed1\u4f53 Std R"])
font3.setPointSize(18)
font3.setBold(True)
font3.setItalic(False)
self.label_pic.setFont(font3)
self.label_pic.setStyleSheet(u"border-image: url(:/login/icons/user.png);\n"
"background-color: transparent;\n"
"border-radius:40px;")
self.label_pic.setAlignment(Qt.AlignCenter)
self.label_log_userBack = QLabel(self.tab_login)
self.label_log_userBack.setObjectName(u"label_log_userBack")
self.label_log_userBack.setGeometry(QRect(52, 136, 319, 43))
self.label_log_userBack.setStyleSheet(u"border-image: url(:/images/icons/logo1.png);")
self.toolButton_go2reg = QToolButton(self.tab_login)
self.toolButton_go2reg.setObjectName(u"toolButton_go2reg")
self.toolButton_go2reg.setGeometry(QRect(2, 400, 121, 41))
self.toolButton_go2reg.setCursor(QCursor(Qt.PointingHandCursor))
self.label_log_info = QLabel(self.tab_login)
self.label_log_info.setObjectName(u"label_log_info")
self.label_log_info.setGeometry(QRect(162, 402, 179, 39))
self.label_log_info.setStyleSheet(u"background-color: transparent;\n"
"color: rgb(255, 0, 127);\n"
"font: 9pt \"\u5fae\u8f6f\u96c5\u9ed1\";")
self.tabWidget.addTab(self.tab_login, "")
self.label_log_passwordBack.raise_()
self.label_log_userBack.raise_()
self.checkBox_remenber.raise_()
self.lineEdit_password.raise_()
self.label_log_user.raise_()
self.lineEdit_user_log.raise_()
self.toolButton_forgetCode.raise_()
self.label_log_password.raise_()
self.pushButton_login.raise_()
self.label_pic.raise_()
self.toolButton_go2reg.raise_()
self.label_log_info.raise_()
self.tab_reg = QWidget()
self.tab_reg.setObjectName(u"tab_reg")
self.lineEdit_user_reg = QLineEdit(self.tab_reg)
self.lineEdit_user_reg.setObjectName(u"lineEdit_user_reg")
self.lineEdit_user_reg.setGeometry(QRect(100, 122, 259, 41))
self.lineEdit_user_reg.setFont(font2)
self.label_reg_passwordBack = QLabel(self.tab_reg)
self.label_reg_passwordBack.setObjectName(u"label_reg_passwordBack")
self.label_reg_passwordBack.setGeometry(QRect(52, 192, 319, 43))
self.label_reg_passwordBack.setStyleSheet(u"border-image: url(:/login/icons/logo1.png);")
self.label_reg_user = QLabel(self.tab_reg)
self.label_reg_user.setObjectName(u"label_reg_user")
self.label_reg_user.setGeometry(QRect(64, 132, 21, 21))
self.label_reg_user.setStyleSheet(u"border-image: url(:/login/icons/logo2.png);\n"
"background-color: transparent;")
self.lineEdit_password_reg = QLineEdit(self.tab_reg)
self.lineEdit_password_reg.setObjectName(u"lineEdit_password_reg")
self.lineEdit_password_reg.setGeometry(QRect(100, 192, 261, 41))
self.lineEdit_password_reg.setFont(font1)
self.label_pic_reg = QLabel(self.tab_reg)
self.label_pic_reg.setObjectName(u"label_pic_reg")
self.label_pic_reg.setGeometry(QRect(166, 10, 85, 85))
self.label_pic_reg.setMinimumSize(QSize(85, 85))
self.label_pic_reg.setMaximumSize(QSize(85, 85))
self.label_pic_reg.setFont(font3)
self.label_pic_reg.setStyleSheet(u"border-image: url(:/login/icons/user.png);\n"
"background-color: transparent;\n"
"border-radius:40px;")
self.label_pic_reg.setAlignment(Qt.AlignCenter)
self.toolButton_go2login = QToolButton(self.tab_reg)
self.toolButton_go2login.setObjectName(u"toolButton_go2login")
self.toolButton_go2login.setGeometry(QRect(2, 400, 119, 39))
self.toolButton_go2login.setCursor(QCursor(Qt.PointingHandCursor))
self.label_reg_password = QLabel(self.tab_reg)
self.label_reg_password.setObjectName(u"label_reg_password")
self.label_reg_password.setGeometry(QRect(64, 204, 21, 21))
self.label_reg_password.setStyleSheet(u"border-image: url(:/login/icons/logo3.png);\n"
"background-color: transparent;")
self.label_reg_userBack = QLabel(self.tab_reg)
self.label_reg_userBack.setObjectName(u"label_reg_userBack")
self.label_reg_userBack.setGeometry(QRect(52, 122, 319, 43))
self.label_reg_userBack.setStyleSheet(u"border-image: url(:/login/icons/logo1.png);")
self.pushButton_reg = QPushButton(self.tab_reg)
self.pushButton_reg.setObjectName(u"pushButton_reg")
self.pushButton_reg.setGeometry(QRect(76, 340, 261, 43))
self.pushButton_reg.setStyleSheet(u"QPushButton{\n"
" background-color:rgb(26, 122, 244);\n"
" border-radius:10px; \n"
" border:1px;\n"
" font:17px \"\u5fae\u8f6f\u96c5\u9ed1\";\n"
" color:rgba(255,255,255);\n"
"}\n"
"\n"
"QPushButton::pressed{\n"
" border-color:rgba(255,255,255,30);\n"
" background-color: rgb(0, 170, 255);\n"
" border-style:inset;\n"
" color:rgba(0,0,0,100);\n"
"}\n"
"\n"
"QPushButton::hover{\n"
" background-color: rgb(73, 154, 237);\n"
" border-color:rgba(255,255,255,200);\n"
" color:rgba(255,255,255);\n"
"}")
self.label_reg_vercodeBack = QLabel(self.tab_reg)
self.label_reg_vercodeBack.setObjectName(u"label_reg_vercodeBack")
self.label_reg_vercodeBack.setGeometry(QRect(52, 262, 223, 43))
self.label_reg_vercodeBack.setStyleSheet(u"border-image: url(:/login/icons/logo1.png);")
self.label_reg_vercode = QLabel(self.tab_reg)
self.label_reg_vercode.setObjectName(u"label_reg_vercode")
self.label_reg_vercode.setGeometry(QRect(64, 272, 21, 23))
self.label_reg_vercode.setStyleSheet(u"border-image: url(:/login/icons/logo4.png);\n"
"background-color: transparent;")
self.lineEdit_code_reg = QLineEdit(self.tab_reg)
self.lineEdit_code_reg.setObjectName(u"lineEdit_code_reg")
self.lineEdit_code_reg.setGeometry(QRect(100, 262, 159, 41))
self.lineEdit_code_reg.setFont(font1)
self.toolButton_verCode = QToolButton(self.tab_reg)
self.toolButton_verCode.setObjectName(u"toolButton_verCode")
self.toolButton_verCode.setGeometry(QRect(282, 262, 89, 43))
sizePolicy1.setHeightForWidth(self.toolButton_verCode.sizePolicy().hasHeightForWidth())
self.toolButton_verCode.setSizePolicy(sizePolicy1)
self.toolButton_verCode.setCursor(QCursor(Qt.PointingHandCursor))
icon2 = QIcon()
icon2.addFile(u":/login/icons/captcha_1.png", QSize(), QIcon.Normal, QIcon.Off)
self.toolButton_verCode.setIcon(icon2)
self.toolButton_verCode.setIconSize(QSize(89, 43))
self.label_reg_info = QLabel(self.tab_reg)
self.label_reg_info.setObjectName(u"label_reg_info")
self.label_reg_info.setGeometry(QRect(158, 404, 179, 39))
self.label_reg_info.setStyleSheet(u"background-color: transparent;\n"
"color: rgb(255, 0, 127);\n"
"font: 9pt \"\u5fae\u8f6f\u96c5\u9ed1\";")
self.toolButton_loadLogo = QToolButton(self.tab_reg)
self.toolButton_loadLogo.setObjectName(u"toolButton_loadLogo")
self.toolButton_loadLogo.setGeometry(QRect(272, 40, 35, 37))
self.toolButton_loadLogo.setMaximumSize(QSize(45, 45))
self.toolButton_loadLogo.setCursor(QCursor(Qt.PointingHandCursor))
self.toolButton_loadLogo.setAutoFillBackground(False)
icon3 = QIcon()
icon3.addFile(u":/images/icons/gallery.png", QSize(), QIcon.Normal, QIcon.Off)
self.toolButton_loadLogo.setIcon(icon3)
self.toolButton_loadLogo.setIconSize(QSize(30, 30))
self.toolButton_loadLogo.setPopupMode(QToolButton.DelayedPopup)
self.toolButton_loadLogo.setToolButtonStyle(Qt.ToolButtonTextUnderIcon)
self.toolButton_loadLogo.setAutoRaise(False)
self.toolButton_loadLogo.setArrowType(Qt.NoArrow)
self.tabWidget.addTab(self.tab_reg, "")
self.label_reg_userBack.raise_()
self.lineEdit_user_reg.raise_()
self.label_reg_passwordBack.raise_()
self.label_reg_user.raise_()
self.lineEdit_password_reg.raise_()
self.label_pic_reg.raise_()
self.toolButton_go2login.raise_()
self.label_reg_password.raise_()
self.pushButton_reg.raise_()
self.label_reg_vercodeBack.raise_()
self.label_reg_vercode.raise_()
self.lineEdit_code_reg.raise_()
self.toolButton_verCode.raise_()
self.label_reg_info.raise_()
self.toolButton_loadLogo.raise_()
self.btn_close = QPushButton(self.frame)
self.btn_close.setObjectName(u"btn_close")
self.btn_close.setGeometry(QRect(704, 8, 33, 31))
sizePolicy.setHeightForWidth(self.btn_close.sizePolicy().hasHeightForWidth())
self.btn_close.setSizePolicy(sizePolicy)
self.btn_close.setMinimumSize(QSize(25, 25))
self.btn_close.setMaximumSize(QSize(40, 16777215))
icon4 = QIcon()
icon4.addFile(u":/login/icons/extractLeft.png", QSize(), QIcon.Normal, QIcon.Off)
self.btn_close.setIcon(icon4)
self.tabWidget.raise_()
self.btn_minimize.raise_()
self.label_movie.raise_()
self.btn_close.raise_()
self.retranslateUi(Dialog)
self.tabWidget.setCurrentIndex(0)
QMetaObject.connectSlotsByName(Dialog)
# setupUi
def retranslateUi(self, Dialog):
Dialog.setWindowTitle(QCoreApplication.translate("Dialog", u"Dialog", None))
#if QT_CONFIG(tooltip)
self.btn_minimize.setToolTip(QCoreApplication.translate("Dialog", u"\u6700\u5c0f\u5316", None))
#endif // QT_CONFIG(tooltip)
self.btn_minimize.setText("")
#if QT_CONFIG(tooltip)
self.label_movie.setToolTip(QCoreApplication.translate("Dialog", u"<html><head/><body><p>\u601d\u7eea\u65e0\u9650</p><p>CSDN\uff1a<a href=\"htps:wuxian.blog.csdn.net\"><span style=\" text-decoration: underline; color:#0000ff;\">wuxian.blog.csdn.net</span></a></p><p>B\u7ad9\uff1a<a href=\"https://space.bilibili.com/456667721\"><span style=\" text-decoration: underline; color:#0000ff;\">\u601d\u7eea\u4ea6\u65e0\u9650</span></a></p></body></html>", None))
#endif // QT_CONFIG(tooltip)
self.label_movie.setText(QCoreApplication.translate("Dialog", u"<html><head/><body><p align=\"center\"><br/></p></body></html>", None))
self.checkBox_remenber.setText(QCoreApplication.translate("Dialog", u"\u8bb0\u4f4f\u5bc6\u7801", None))
self.lineEdit_password.setText("")
self.label_log_passwordBack.setText("")
self.label_log_user.setText("")
self.lineEdit_user_log.setText("")
self.toolButton_forgetCode.setText(QCoreApplication.translate("Dialog", u"\u5fd8\u8bb0\u5bc6\u7801", None))
self.label_log_password.setText("")
self.pushButton_login.setText(QCoreApplication.translate("Dialog", u"\u767b \u5f55", None))
self.label_pic.setText("")
self.label_log_userBack.setText("")
self.toolButton_go2reg.setText(QCoreApplication.translate("Dialog", u"\u6ce8\u518c\u8d26\u53f7", None))
self.label_log_info.setText("")
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_login), "")
self.lineEdit_user_reg.setText("")
self.label_reg_passwordBack.setText("")
self.label_reg_user.setText("")
self.lineEdit_password_reg.setText("")
self.label_pic_reg.setText("")
self.toolButton_go2login.setText(QCoreApplication.translate("Dialog", u"\u524d\u5f80\u767b\u5f55", None))
self.label_reg_password.setText("")
self.label_reg_userBack.setText("")
self.pushButton_reg.setText(QCoreApplication.translate("Dialog", u"\u6ce8 \u518c", None))
self.label_reg_vercodeBack.setText("")
self.label_reg_vercode.setText("")
self.lineEdit_code_reg.setText("")
self.toolButton_verCode.setText("")
self.label_reg_info.setText("")
#if QT_CONFIG(tooltip)
self.toolButton_loadLogo.setToolTip(QCoreApplication.translate("Dialog", u"\u4fee\u6539\u5934\u50cf", None))
#endif // QT_CONFIG(tooltip)
self.toolButton_loadLogo.setText("")
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_reg), "")
#if QT_CONFIG(tooltip)
self.btn_close.setToolTip(QCoreApplication.translate("Dialog", u"\u5173\u95ed", None))
#endif // QT_CONFIG(tooltip)
self.btn_close.setText("")
# retranslateUi
上一篇: 2024微信小程序期末大作业-点奶茶微信小程序(后端nodejs-server)(附下载链接)_微信小程序期末大作业百度网盘下载
下一篇: 【C++入门到精通】智能指针 shared_ptr 简介及C++模拟实现 [ C++入门 ]
本文标签
可更换模型 详细环境搭建+视频展示 YOLOv5/v8车牌识别系统 更换.pt文件可以可视化其他深度学习项目 QT可视化界面
声明
本文内容仅代表作者观点,或转载于其他网站,本站不以此文作为商业用途
如有涉及侵权,请联系本站进行删除
转载本站原创文章,请注明来源及作者。