1 Star 0 Fork 8

纪元/疲劳检测

forked from chen/疲劳检测 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ui_mainwindow.py 6.47 KB
一键复制 编辑 原始数据 按行查看 历史
chen 提交于 2021-11-17 08:57 . 测试win上传代码
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'mainwindow.ui'
##
## Created by: Qt User Interface Compiler version 5.15.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide2.QtCore import *
from PySide2.QtGui import *
from PySide2.QtWidgets import *
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
if not MainWindow.objectName():
MainWindow.setObjectName(u"MainWindow")
MainWindow.resize(1060, 578)
self.actionOpen_camera = QAction(MainWindow)
self.actionOpen_camera.setObjectName(u"actionOpen_camera")
self.centralwidget = QWidget(MainWindow)
self.centralwidget.setObjectName(u"centralwidget")
self.verticalLayout_2 = QVBoxLayout(self.centralwidget)
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
self.horizontalLayout = QHBoxLayout()
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.label = QLabel(self.centralwidget)
self.label.setObjectName(u"label")
self.label.setMinimumSize(QSize(720, 480))
self.label.setMaximumSize(QSize(720, 480))
self.horizontalLayout.addWidget(self.label)
self.verticalLayout = QVBoxLayout()
self.verticalLayout.setObjectName(u"verticalLayout")
self.horizontalLayout_5 = QHBoxLayout()
self.horizontalLayout_5.setObjectName(u"horizontalLayout_5")
self.label_2 = QLabel(self.centralwidget)
self.label_2.setObjectName(u"label_2")
self.label_2.setMaximumSize(QSize(120, 30))
self.horizontalLayout_5.addWidget(self.label_2)
self.label_10 = QLabel(self.centralwidget)
self.label_10.setObjectName(u"label_10")
self.label_10.setMaximumSize(QSize(180, 30))
self.horizontalLayout_5.addWidget(self.label_10)
self.verticalLayout.addLayout(self.horizontalLayout_5)
self.horizontalLayout_2 = QHBoxLayout()
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
self.label_3 = QLabel(self.centralwidget)
self.label_3.setObjectName(u"label_3")
self.label_3.setMaximumSize(QSize(150, 30))
self.horizontalLayout_2.addWidget(self.label_3)
self.label_4 = QLabel(self.centralwidget)
self.label_4.setObjectName(u"label_4")
self.label_4.setMaximumSize(QSize(150, 30))
self.horizontalLayout_2.addWidget(self.label_4)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.horizontalLayout_4 = QHBoxLayout()
self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
self.label_5 = QLabel(self.centralwidget)
self.label_5.setObjectName(u"label_5")
self.label_5.setMaximumSize(QSize(120, 30))
self.horizontalLayout_4.addWidget(self.label_5)
self.label_9 = QLabel(self.centralwidget)
self.label_9.setObjectName(u"label_9")
self.label_9.setMaximumSize(QSize(180, 30))
self.horizontalLayout_4.addWidget(self.label_9)
self.verticalLayout.addLayout(self.horizontalLayout_4)
self.horizontalLayout_3 = QHBoxLayout()
self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
self.label_6 = QLabel(self.centralwidget)
self.label_6.setObjectName(u"label_6")
self.label_6.setMaximumSize(QSize(100, 30))
self.horizontalLayout_3.addWidget(self.label_6)
self.label_7 = QLabel(self.centralwidget)
self.label_7.setObjectName(u"label_7")
self.label_7.setMaximumSize(QSize(100, 30))
self.horizontalLayout_3.addWidget(self.label_7)
self.label_8 = QLabel(self.centralwidget)
self.label_8.setObjectName(u"label_8")
self.label_8.setMaximumSize(QSize(100, 30))
self.horizontalLayout_3.addWidget(self.label_8)
self.verticalLayout.addLayout(self.horizontalLayout_3)
self.textBrowser = QTextBrowser(self.centralwidget)
self.textBrowser.setObjectName(u"textBrowser")
self.textBrowser.setMaximumSize(QSize(300, 360))
self.verticalLayout.addWidget(self.textBrowser)
self.horizontalLayout.addLayout(self.verticalLayout)
self.verticalLayout_2.addLayout(self.horizontalLayout)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QMenuBar(MainWindow)
self.menubar.setObjectName(u"menubar")
self.menubar.setGeometry(QRect(0, 0, 1060, 26))
self.menu = QMenu(self.menubar)
self.menu.setObjectName(u"menu")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QStatusBar(MainWindow)
self.statusbar.setObjectName(u"statusbar")
MainWindow.setStatusBar(self.statusbar)
self.menubar.addAction(self.menu.menuAction())
self.menu.addAction(self.actionOpen_camera)
self.retranslateUi(MainWindow)
QMetaObject.connectSlotsByName(MainWindow)
# setupUi
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"MainWindow", None))
self.actionOpen_camera.setText(QCoreApplication.translate("MainWindow", u"Open camera", None))
self.label.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None))
self.label_2.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None))
self.label_10.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None))
self.label_3.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None))
self.label_4.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None))
self.label_5.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None))
self.label_9.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None))
self.label_6.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None))
self.label_7.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None))
self.label_8.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None))
self.menu.setTitle(QCoreApplication.translate("MainWindow", u"Open", None))
# retranslateUi
# 消息框显示函数
def printf(self, mes):
self.textBrowser.append(mes) # 在指定的区域显示提示信息
self.cursot = self.textBrowser.textCursor()
self.textBrowser.moveCursor(self.cursot.End)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/kagnzijun/yolov5_detect.git
git@gitee.com:kagnzijun/yolov5_detect.git
kagnzijun
yolov5_detect
疲劳检测
master

搜索帮助