-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathui_faceRecognition.py
151 lines (145 loc) · 6.88 KB
/
ui_faceRecognition.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'faceRecognition.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_faceRfecognition(object):
def setupUi(self, Core):
Core.setObjectName("Core")
Core.resize(1280, 656)
font = QtGui.QFont()
font.setPointSize(8)
font.setBold(False)
font.setWeight(50)
font.setKerning(True)
Core.setFont(font)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("icon.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
Core.setWindowIcon(icon)
self.horizontalLayout = QtWidgets.QHBoxLayout(Core)
self.horizontalLayout.setObjectName("horizontalLayout")
self.videoGroupBox = QtWidgets.QGroupBox(Core)
self.videoGroupBox.setEnabled(True)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
font.setKerning(True)
self.videoGroupBox.setFont(font)
self.videoGroupBox.setAlignment(QtCore.Qt.AlignCenter)
self.videoGroupBox.setFlat(False)
self.videoGroupBox.setObjectName("videoGroupBox")
self.faceDetectCaptureLabel = QtWidgets.QLabel(self.videoGroupBox)
self.faceDetectCaptureLabel.setGeometry(QtCore.QRect(0, 30, 960, 591))
self.faceDetectCaptureLabel.setFrameShape(QtWidgets.QFrame.Box)
self.faceDetectCaptureLabel.setAlignment(QtCore.Qt.AlignCenter)
self.faceDetectCaptureLabel.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByMouse)
self.faceDetectCaptureLabel.setObjectName("faceDetectCaptureLabel")
self.operationGroupBox = QtWidgets.QGroupBox(self.videoGroupBox)
self.operationGroupBox.setGeometry(QtCore.QRect(970, 20, 291, 601))
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
font.setKerning(True)
self.operationGroupBox.setFont(font)
self.operationGroupBox.setAlignment(QtCore.Qt.AlignCenter)
self.operationGroupBox.setObjectName("operationGroupBox")
self.logGroupBox = QtWidgets.QGroupBox(self.operationGroupBox)
self.logGroupBox.setGeometry(QtCore.QRect(0, 290, 281, 311))
self.logGroupBox.setAlignment(QtCore.Qt.AlignCenter)
self.logGroupBox.setObjectName("logGroupBox")
self.logTextEdit = QtWidgets.QTextEdit(self.logGroupBox)
self.logTextEdit.setGeometry(QtCore.QRect(0, 30, 281, 271))
font = QtGui.QFont()
font.setPointSize(8)
font.setBold(False)
font.setWeight(50)
font.setKerning(True)
self.logTextEdit.setFont(font)
self.logTextEdit.setFrameShape(QtWidgets.QFrame.Box)
self.logTextEdit.setObjectName("logTextEdit")
self.layoutWidget = QtWidgets.QWidget(self.operationGroupBox)
self.layoutWidget.setGeometry(QtCore.QRect(10, 30, 271, 243))
self.layoutWidget.setObjectName("layoutWidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.layoutWidget)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setObjectName("verticalLayout")
self.uploadRosterButton = QtWidgets.QPushButton(self.layoutWidget)
self.uploadRosterButton.setEnabled(True)
font = QtGui.QFont()
font.setFamily("Yu Gothic UI Semibold")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
font.setKerning(True)
self.uploadRosterButton.setFont(font)
self.uploadRosterButton.setCheckable(True)
self.uploadRosterButton.setObjectName("uploadRosterButton")
self.verticalLayout.addWidget(self.uploadRosterButton)
self.clipFormatButton = QtWidgets.QPushButton(self.layoutWidget)
self.clipFormatButton.setEnabled(False)
font = QtGui.QFont()
font.setFamily("Yu Gothic UI Semibold")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
font.setKerning(True)
self.clipFormatButton.setFont(font)
self.clipFormatButton.setCheckable(True)
self.clipFormatButton.setObjectName("clipFormatButton")
self.verticalLayout.addWidget(self.clipFormatButton)
self.uploadVideoButton = QtWidgets.QPushButton(self.layoutWidget)
self.uploadVideoButton.setEnabled(False)
font = QtGui.QFont()
font.setFamily("Yu Gothic UI Semibold")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
font.setKerning(True)
self.uploadVideoButton.setFont(font)
self.uploadVideoButton.setCheckable(True)
self.uploadVideoButton.setObjectName("uploadVideoButton")
self.verticalLayout.addWidget(self.uploadVideoButton)
self.faceRecognitionButton = QtWidgets.QPushButton(self.layoutWidget)
self.faceRecognitionButton.setEnabled(False)
font = QtGui.QFont()
font.setFamily("Yu Gothic UI Semibold")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
font.setKerning(True)
self.faceRecognitionButton.setFont(font)
self.faceRecognitionButton.setCheckable(True)
self.faceRecognitionButton.setObjectName("faceRecognitionButton")
self.verticalLayout.addWidget(self.faceRecognitionButton)
self.drawButton = QtWidgets.QPushButton(self.layoutWidget)
self.drawButton.setEnabled(False)
font = QtGui.QFont()
font.setFamily("Yu Gothic UI Semibold")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
font.setKerning(True)
self.drawButton.setFont(font)
self.drawButton.setCheckable(True)
self.drawButton.setObjectName("drawButton")
self.verticalLayout.addWidget(self.drawButton)
self.horizontalLayout.addWidget(self.videoGroupBox)
self.retranslateUi(Core)
QtCore.QMetaObject.connectSlotsByName(Core)
def retranslateUi(self, Core):
_translate = QtCore.QCoreApplication.translate
Core.setWindowTitle(_translate("Core", "iExam"))
self.videoGroupBox.setTitle(_translate("Core", "Zoom Video"))
self.faceDetectCaptureLabel.setText(_translate("Core", "<html><head/><body><p><span style=\" color:#ff0000;\">Zoom Video Window</span></p></body></html>"))
self.operationGroupBox.setTitle(_translate("Core", "Operation"))
self.logGroupBox.setTitle(_translate("Core", "System Log"))
self.uploadRosterButton.setText(_translate("Core", "select roster path"))
self.clipFormatButton.setText(_translate("Core", "input view format"))
self.uploadVideoButton.setText(_translate("Core", "select training video\n"
"and training dataset"))
self.faceRecognitionButton.setText(_translate("Core", "select test video and run"))
self.drawButton.setText(_translate("Core", "draw analysis graph"))