-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathgui.py
121 lines (114 loc) · 5.63 KB
/
gui.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'untitled.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
#
# 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_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(1618, 836)
self.label_ori = QtWidgets.QLabel(Dialog)
self.label_ori.setGeometry(QtCore.QRect(20, 220, 600, 600))
self.label_ori.setText("")
self.label_ori.setObjectName("label_ori")
self.pushButton_Model = QtWidgets.QPushButton(Dialog)
self.pushButton_Model.setGeometry(QtCore.QRect(20, 140, 131, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pushButton_Model.setFont(font)
self.pushButton_Model.setObjectName("pushButton_Model")
self.pushButton_Exit = QtWidgets.QPushButton(Dialog)
self.pushButton_Exit.setGeometry(QtCore.QRect(1300, 140, 131, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pushButton_Exit.setFont(font)
self.pushButton_Exit.setObjectName("pushButton_Exit")
self.label_det = QtWidgets.QLabel(Dialog)
self.label_det.setGeometry(QtCore.QRect(650, 220, 600, 600))
self.label_det.setText("")
self.label_det.setObjectName("label_det")
self.pushButton_Img = QtWidgets.QPushButton(Dialog)
self.pushButton_Img.setGeometry(QtCore.QRect(180, 140, 131, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pushButton_Img.setFont(font)
self.pushButton_Img.setObjectName("pushButton_Img")
self.pushButton_ImgFolder = QtWidgets.QPushButton(Dialog)
self.pushButton_ImgFolder.setGeometry(QtCore.QRect(340, 140, 131, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pushButton_ImgFolder.setFont(font)
self.pushButton_ImgFolder.setObjectName("pushButton_ImgFolder")
self.pushButton_Video = QtWidgets.QPushButton(Dialog)
self.pushButton_Video.setGeometry(QtCore.QRect(500, 140, 131, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pushButton_Video.setFont(font)
self.pushButton_Video.setObjectName("pushButton_Video")
self.pushButton_Camera = QtWidgets.QPushButton(Dialog)
self.pushButton_Camera.setGeometry(QtCore.QRect(660, 140, 131, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pushButton_Camera.setFont(font)
self.pushButton_Camera.setObjectName("pushButton_Camera")
self.label = QtWidgets.QLabel(Dialog)
self.label.setGeometry(QtCore.QRect(150, 30, 1341, 81))
font = QtGui.QFont()
font.setPointSize(25)
font.setBold(True)
font.setUnderline(False)
font.setWeight(75)
font.setStrikeOut(False)
font.setKerning(True)
self.label.setFont(font)
self.label.setAlignment(QtCore.Qt.AlignCenter)
self.label.setObjectName("label")
self.textBrowser = QtWidgets.QTextBrowser(Dialog)
self.textBrowser.setGeometry(QtCore.QRect(1270, 220, 330, 600))
self.textBrowser.setObjectName("textBrowser")
self.pushButton_BegDet = QtWidgets.QPushButton(Dialog)
self.pushButton_BegDet.setGeometry(QtCore.QRect(820, 140, 131, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pushButton_BegDet.setFont(font)
self.pushButton_BegDet.setObjectName("pushButton_BegDet")
self.pushButton_StopDet = QtWidgets.QPushButton(Dialog)
self.pushButton_StopDet.setGeometry(QtCore.QRect(980, 140, 131, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pushButton_StopDet.setFont(font)
self.pushButton_StopDet.setObjectName("pushButton_StopDet")
self.pushButton_SavePath = QtWidgets.QPushButton(Dialog)
self.pushButton_SavePath.setGeometry(QtCore.QRect(1140, 140, 131, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pushButton_SavePath.setFont(font)
self.pushButton_SavePath.setObjectName("pushButton_SavePath")
self.comboBox = QtWidgets.QComboBox(Dialog)
self.comboBox.setGeometry(QtCore.QRect(1460, 140, 151, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.comboBox.setFont(font)
self.comboBox.setObjectName("comboBox")
self.comboBox.addItem("")
self.comboBox.addItem("")
self.retranslateUi(Dialog)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
Dialog.setWindowTitle(_translate("Dialog", "YOLO-PYQT"))
self.pushButton_Model.setText(_translate("Dialog", "选择配置文件"))
self.pushButton_Exit.setText(_translate("Dialog", "退出"))
self.pushButton_Img.setText(_translate("Dialog", "打开图片"))
self.pushButton_ImgFolder.setText(_translate("Dialog", "打开文件夹"))
self.pushButton_Video.setText(_translate("Dialog", "打开视频"))
self.pushButton_Camera.setText(_translate("Dialog", "打开摄像头"))
self.label.setText(_translate("Dialog", "Title"))
self.pushButton_BegDet.setText(_translate("Dialog", "开始检测"))
self.pushButton_StopDet.setText(_translate("Dialog", "停止检测"))
self.pushButton_SavePath.setText(_translate("Dialog", "设置保存路径"))
self.comboBox.setItemText(0, _translate("Dialog", "NoTrack"))
self.comboBox.setItemText(1, _translate("Dialog", "ByteTrack"))