-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfinalui.py
214 lines (205 loc) · 10.9 KB
/
finalui.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'finalui.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_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1013, 718)
self.centralwidget = QtWidgets.QWidget(MainWindow)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
self.centralwidget.setSizePolicy(sizePolicy)
self.centralwidget.setObjectName("centralwidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
self.verticalLayout.setObjectName("verticalLayout")
self.frame = QtWidgets.QFrame(self.centralwidget)
self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame.setObjectName("frame")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.frame)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.frame_4 = QtWidgets.QFrame(self.frame)
self.frame_4.setMaximumSize(QtCore.QSize(16777215, 1000))
self.frame_4.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_4.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_4.setObjectName("frame_4")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.frame_4)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.frame_7 = QtWidgets.QFrame(self.frame_4)
self.frame_7.setMinimumSize(QtCore.QSize(500, 100))
self.frame_7.setMaximumSize(QtCore.QSize(1000, 100))
self.frame_7.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_7.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_7.setObjectName("frame_7")
self.TEXT = QtWidgets.QTextBrowser(self.frame_7)
self.TEXT.setGeometry(QtCore.QRect(10, 10, 1000, 100))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.TEXT.sizePolicy().hasHeightForWidth())
self.TEXT.setSizePolicy(sizePolicy)
self.TEXT.setMinimumSize(QtCore.QSize(500, 100))
self.TEXT.setMaximumSize(QtCore.QSize(1000, 100))
self.TEXT.setAutoFillBackground(False)
self.TEXT.setAutoFormatting(QtWidgets.QTextEdit.AutoNone)
self.TEXT.setObjectName("TEXT")
self.verticalLayout_3.addWidget(self.frame_7, 0, QtCore.Qt.AlignHCenter)
self.frame_3 = QtWidgets.QFrame(self.frame_4)
self.frame_3.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_3.setObjectName("frame_3")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_3)
self.horizontalLayout.setObjectName("horizontalLayout")
self.frame_5 = QtWidgets.QFrame(self.frame_3)
self.frame_5.setMinimumSize(QtCore.QSize(200, 0))
self.frame_5.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_5.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_5.setObjectName("frame_5")
self.idSelector = QtWidgets.QComboBox(self.frame_5)
self.idSelector.setGeometry(QtCore.QRect(60, 40, 91, 41))
self.idSelector.setObjectName("idSelector")
self.id_text = QtWidgets.QLabel(self.frame_5)
self.id_text.setGeometry(QtCore.QRect(10, 10, 161, 21))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.id_text.setFont(font)
self.id_text.setObjectName("id_text")
self.horizontalLayout.addWidget(self.frame_5, 0, QtCore.Qt.AlignHCenter)
self.test_img = QtWidgets.QLabel(self.frame_3)
self.test_img.setMinimumSize(QtCore.QSize(400, 100))
self.test_img.setMaximumSize(QtCore.QSize(500, 16777215))
self.test_img.setFrameShape(QtWidgets.QFrame.Box)
self.test_img.setFrameShadow(QtWidgets.QFrame.Raised)
self.test_img.setLineWidth(7)
self.test_img.setText("")
self.test_img.setObjectName("test_img")
self.horizontalLayout.addWidget(self.test_img)
self.frame_6 = QtWidgets.QFrame(self.frame_3)
self.frame_6.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_6.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_6.setObjectName("frame_6")
self.horizontalLayout.addWidget(self.frame_6)
self.verticalLayout_3.addWidget(self.frame_3)
self.verticalLayout_2.addWidget(self.frame_4)
self.verticalLayout.addWidget(self.frame)
self.frame_2 = QtWidgets.QFrame(self.centralwidget)
self.frame_2.setMinimumSize(QtCore.QSize(1000, 0))
self.frame_2.setMaximumSize(QtCore.QSize(2200, 1500))
self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_2.setObjectName("frame_2")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame_2)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.frame_8 = QtWidgets.QFrame(self.frame_2)
self.frame_8.setMinimumSize(QtCore.QSize(120, 300))
self.frame_8.setMaximumSize(QtCore.QSize(150, 350))
self.frame_8.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_8.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_8.setObjectName("frame_8")
self.CHECK = QtWidgets.QPushButton(self.frame_8)
self.CHECK.setGeometry(QtCore.QRect(20, 100, 121, 71))
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.CHECK.setFont(font)
self.CHECK.setObjectName("CHECK")
self.SHOW = QtWidgets.QPushButton(self.frame_8)
self.SHOW.setGeometry(QtCore.QRect(20, 20, 121, 71))
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.SHOW.setFont(font)
self.SHOW.setCheckable(False)
self.SHOW.setObjectName("SHOW")
self.horizontalLayout_2.addWidget(self.frame_8)
self.frame_9 = QtWidgets.QFrame(self.frame_2)
self.frame_9.setMinimumSize(QtCore.QSize(350, 0))
self.frame_9.setMaximumSize(QtCore.QSize(800, 800))
self.frame_9.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_9.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_9.setObjectName("frame_9")
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.frame_9)
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.live_camera_text = QtWidgets.QLabel(self.frame_9)
self.live_camera_text.setMinimumSize(QtCore.QSize(120, 20))
self.live_camera_text.setMaximumSize(QtCore.QSize(120, 30))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.live_camera_text.setFont(font)
self.live_camera_text.setObjectName("live_camera_text")
self.verticalLayout_4.addWidget(self.live_camera_text, 0, QtCore.Qt.AlignHCenter)
self.imglabel = QtWidgets.QLabel(self.frame_9)
self.imglabel.setMinimumSize(QtCore.QSize(300, 200))
self.imglabel.setMaximumSize(QtCore.QSize(800, 600))
self.imglabel.setFrameShape(QtWidgets.QFrame.Box)
self.imglabel.setFrameShadow(QtWidgets.QFrame.Raised)
self.imglabel.setLineWidth(7)
self.imglabel.setText("")
self.imglabel.setObjectName("imglabel")
self.verticalLayout_4.addWidget(self.imglabel)
self.horizontalLayout_2.addWidget(self.frame_9)
self.frame_10 = QtWidgets.QFrame(self.frame_2)
self.frame_10.setMaximumSize(QtCore.QSize(800, 800))
self.frame_10.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_10.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_10.setObjectName("frame_10")
self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.frame_10)
self.verticalLayout_5.setObjectName("verticalLayout_5")
self.captured_img_text = QtWidgets.QLabel(self.frame_10)
self.captured_img_text.setMinimumSize(QtCore.QSize(120, 30))
self.captured_img_text.setMaximumSize(QtCore.QSize(120, 30))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.captured_img_text.setFont(font)
self.captured_img_text.setObjectName("captured_img_text")
self.verticalLayout_5.addWidget(self.captured_img_text, 0, QtCore.Qt.AlignHCenter)
self.captured_img = QtWidgets.QLabel(self.frame_10)
self.captured_img.setMinimumSize(QtCore.QSize(300, 200))
self.captured_img.setMaximumSize(QtCore.QSize(800, 600))
self.captured_img.setFrameShape(QtWidgets.QFrame.Box)
self.captured_img.setFrameShadow(QtWidgets.QFrame.Raised)
self.captured_img.setLineWidth(7)
self.captured_img.setText("")
self.captured_img.setObjectName("captured_img")
self.verticalLayout_5.addWidget(self.captured_img)
self.horizontalLayout_2.addWidget(self.frame_10)
self.verticalLayout.addWidget(self.frame_2, 0, QtCore.Qt.AlignLeft)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1013, 22))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
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", "MainWindow"))
self.id_text.setText(_translate("MainWindow", "You are testing with ID:"))
self.CHECK.setText(_translate("MainWindow", "Check"))
self.SHOW.setText(_translate("MainWindow", "Show"))
self.live_camera_text.setText(_translate("MainWindow", "Live Camera : "))
self.captured_img_text.setText(_translate("MainWindow", "Captured Image :"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())