-
Notifications
You must be signed in to change notification settings - Fork 2
/
ventana.py
177 lines (170 loc) · 9.32 KB
/
ventana.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ventana.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(800, 836)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
MainWindow.setSizePolicy(sizePolicy)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("DeepFaceGUIApp.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MainWindow.setWindowIcon(icon)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
self.groupBox.setGeometry(QtCore.QRect(20, 10, 751, 451))
self.groupBox.setObjectName("groupBox")
self.img_cargado = QtWidgets.QGraphicsView(self.groupBox)
self.img_cargado.setGeometry(QtCore.QRect(20, 20, 371, 351))
self.img_cargado.setObjectName("img_cargado")
self.anabtn = QtWidgets.QPushButton(self.groupBox)
self.anabtn.setGeometry(QtCore.QRect(470, 360, 75, 23))
self.anabtn.setObjectName("anabtn")
self.copybtn = QtWidgets.QPushButton(self.groupBox)
self.copybtn.setGeometry(QtCore.QRect(580, 360, 111, 23))
self.copybtn.setObjectName("copybtn")
self.label = QtWidgets.QLabel(self.groupBox)
self.label.setGeometry(QtCore.QRect(430, 20, 131, 16))
self.label.setObjectName("label")
self.label_2 = QtWidgets.QLabel(self.groupBox)
self.label_2.setGeometry(QtCore.QRect(450, 50, 41, 16))
self.label_2.setObjectName("label_2")
self.anno = QtWidgets.QLabel(self.groupBox)
self.anno.setGeometry(QtCore.QRect(510, 50, 151, 16))
self.anno.setText("")
self.anno.setObjectName("anno")
self.label_3 = QtWidgets.QLabel(self.groupBox)
self.label_3.setGeometry(QtCore.QRect(450, 77, 61, 16))
self.label_3.setObjectName("label_3")
self.genero = QtWidgets.QLabel(self.groupBox)
self.genero.setGeometry(QtCore.QRect(520, 75, 191, 20))
self.genero.setText("")
self.genero.setObjectName("genero")
self.label_4 = QtWidgets.QLabel(self.groupBox)
self.label_4.setGeometry(QtCore.QRect(450, 105, 71, 16))
self.label_4.setObjectName("label_4")
self.raza = QtWidgets.QLabel(self.groupBox)
self.raza.setGeometry(QtCore.QRect(520, 103, 141, 20))
self.raza.setText("")
self.raza.setObjectName("raza")
self.label_5 = QtWidgets.QLabel(self.groupBox)
self.label_5.setGeometry(QtCore.QRect(450, 133, 61, 16))
self.label_5.setObjectName("label_5")
self.emocion = QtWidgets.QLabel(self.groupBox)
self.emocion.setGeometry(QtCore.QRect(520, 131, 131, 20))
self.emocion.setText("")
self.emocion.setObjectName("emocion")
self.label_6 = QtWidgets.QLabel(self.groupBox)
self.label_6.setGeometry(QtCore.QRect(430, 170, 101, 20))
self.label_6.setObjectName("label_6")
self.label_8 = QtWidgets.QLabel(self.groupBox)
self.label_8.setGeometry(QtCore.QRect(230, 400, 111, 16))
self.label_8.setObjectName("label_8")
self.lista_bkends = QtWidgets.QComboBox(self.groupBox)
self.lista_bkends.setGeometry(QtCore.QRect(360, 400, 201, 21))
self.lista_bkends.setObjectName("lista_bkends")
self.textBrowser = QtWidgets.QTextEdit(self.groupBox)
self.textBrowser.setEnabled(True)
self.textBrowser.setGeometry(QtCore.QRect(440, 200, 281, 141))
self.textBrowser.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
self.textBrowser.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
self.textBrowser.setReadOnly(True)
self.textBrowser.setObjectName("textBrowser")
self.groupBox_2 = QtWidgets.QGroupBox(self.centralwidget)
self.groupBox_2.setGeometry(QtCore.QRect(20, 470, 751, 261))
self.groupBox_2.setObjectName("groupBox_2")
self.sel_btn1 = QtWidgets.QPushButton(self.groupBox_2)
self.sel_btn1.setGeometry(QtCore.QRect(540, 70, 141, 23))
self.sel_btn1.setObjectName("sel_btn1")
self.sel_btn2 = QtWidgets.QPushButton(self.groupBox_2)
self.sel_btn2.setGeometry(QtCore.QRect(540, 100, 141, 23))
self.sel_btn2.setObjectName("sel_btn2")
self.img_izq = QtWidgets.QGraphicsView(self.groupBox_2)
self.img_izq.setGeometry(QtCore.QRect(20, 30, 211, 201))
self.img_izq.setObjectName("img_izq")
self.img_dch = QtWidgets.QGraphicsView(self.groupBox_2)
self.img_dch.setGeometry(QtCore.QRect(250, 30, 211, 201))
self.img_dch.setObjectName("img_dch")
self.estado = QtWidgets.QLabel(self.groupBox_2)
self.estado.setGeometry(QtCore.QRect(490, 170, 241, 71))
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(False)
self.estado.setFont(font)
self.estado.setText("")
self.estado.setAlignment(QtCore.Qt.AlignCenter)
self.estado.setObjectName("estado")
self.verificar = QtWidgets.QPushButton(self.groupBox_2)
self.verificar.setGeometry(QtCore.QRect(570, 130, 75, 23))
self.verificar.setObjectName("verificar")
self.label_7 = QtWidgets.QLabel(self.groupBox_2)
self.label_7.setGeometry(QtCore.QRect(500, 30, 51, 20))
self.label_7.setObjectName("label_7")
self.lista_modulos = QtWidgets.QComboBox(self.groupBox_2)
self.lista_modulos.setGeometry(QtCore.QRect(560, 30, 141, 22))
self.lista_modulos.setObjectName("lista_modulos")
self.progressBar = QtWidgets.QProgressBar(self.centralwidget)
self.progressBar.setGeometry(QtCore.QRect(50, 750, 701, 23))
self.progressBar.setProperty("value", 0)
self.progressBar.setObjectName("progressBar")
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 22))
self.menubar.setObjectName("menubar")
self.menuFile = QtWidgets.QMenu(self.menubar)
self.menuFile.setObjectName("menuFile")
self.menuHelp = QtWidgets.QMenu(self.menubar)
self.menuHelp.setObjectName("menuHelp")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.actionOpen = QtWidgets.QAction(MainWindow)
self.actionOpen.setObjectName("actionOpen")
self.actionExit = QtWidgets.QAction(MainWindow)
self.actionExit.setObjectName("actionExit")
self.actionProxy = QtWidgets.QAction(MainWindow)
self.actionProxy.setObjectName("actionProxy")
self.actionAcercade = QtWidgets.QAction(MainWindow)
self.actionAcercade.setObjectName("actionAcercade")
self.menuFile.addAction(self.actionOpen)
self.menuFile.addAction(self.actionExit)
self.menuHelp.addAction(self.actionProxy)
self.menuHelp.addAction(self.actionAcercade)
self.menubar.addAction(self.menuFile.menuAction())
self.menubar.addAction(self.menuHelp.menuAction())
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "Onekey DeepFace"))
self.groupBox.setTitle(_translate("MainWindow", "Face analyze"))
self.anabtn.setText(_translate("MainWindow", "Analyze"))
self.copybtn.setText(_translate("MainWindow", "Copy to Clipboard"))
self.label.setText(_translate("MainWindow", "Basic Information:"))
self.label_2.setText(_translate("MainWindow", "Age:"))
self.label_3.setText(_translate("MainWindow", "Gender:"))
self.label_4.setText(_translate("MainWindow", "Ethnicity:"))
self.label_5.setText(_translate("MainWindow", "Emotion:"))
self.label_6.setText(_translate("MainWindow", "Extra Information:"))
self.label_8.setText(_translate("MainWindow", "Detector Backend:"))
self.groupBox_2.setTitle(_translate("MainWindow", "Face verification"))
self.sel_btn1.setText(_translate("MainWindow", "Select First Picture"))
self.sel_btn2.setText(_translate("MainWindow", "Select Second Picture"))
self.verificar.setText(_translate("MainWindow", "Verify"))
self.label_7.setText(_translate("MainWindow", "Model:"))
self.menuFile.setTitle(_translate("MainWindow", "File"))
self.menuHelp.setTitle(_translate("MainWindow", "Settings"))
self.actionOpen.setText(_translate("MainWindow", "Open"))
self.actionExit.setText(_translate("MainWindow", "Exit"))
self.actionProxy.setText(_translate("MainWindow", "Proxy Configuration"))
self.actionAcercade.setText(_translate("MainWindow", "About"))