-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUi_opencv_gui_app.py
535 lines (528 loc) · 29.7 KB
/
Ui_opencv_gui_app.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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Opencv_gui_app.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, 600)
MainWindow.setStyleSheet("background-color: rgb(0, 0, 0);\n"
"")
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralwidget)
self.horizontalLayout.setObjectName("horizontalLayout")
self.frame_3 = QtWidgets.QFrame(self.centralwidget)
self.frame_3.setStyleSheet("")
self.frame_3.setFrameShape(QtWidgets.QFrame.Panel)
self.frame_3.setFrameShadow(QtWidgets.QFrame.Plain)
self.frame_3.setObjectName("frame_3")
self.verticalLayout = QtWidgets.QVBoxLayout(self.frame_3)
self.verticalLayout.setObjectName("verticalLayout")
self.frame_4 = QtWidgets.QFrame(self.frame_3)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.frame_4.sizePolicy().hasHeightForWidth())
self.frame_4.setSizePolicy(sizePolicy)
self.frame_4.setStyleSheet("")
self.frame_4.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_4.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_4.setObjectName("frame_4")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame_4)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.groupBox = QtWidgets.QGroupBox(self.frame_4)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
self.groupBox.setFont(font)
self.groupBox.setLayoutDirection(QtCore.Qt.LeftToRight)
self.groupBox.setStyleSheet("color:rgb(255, 85, 0)")
self.groupBox.setAlignment(QtCore.Qt.AlignCenter)
self.groupBox.setObjectName("groupBox")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.label = QtWidgets.QLabel(self.groupBox)
font = QtGui.QFont()
font.setPointSize(10)
self.label.setFont(font)
self.label.setStyleSheet("color: rgb(255, 255, 255);\n"
"")
self.label.setObjectName("label")
self.horizontalLayout_3.addWidget(self.label)
self.spinBox_KernelSize = QtWidgets.QSpinBox(self.groupBox)
self.spinBox_KernelSize.setStyleSheet("color: rgb(255, 255, 255);\n"
"background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(0, 0, 0, 255), stop:1 rgba(255, 255, 255, 255));")
self.spinBox_KernelSize.setObjectName("spinBox_KernelSize")
self.horizontalLayout_3.addWidget(self.spinBox_KernelSize)
self.verticalLayout_3.addLayout(self.horizontalLayout_3)
self.line_3 = QtWidgets.QFrame(self.groupBox)
self.line_3.setStyleSheet("background-color: rgb(255, 170, 0);")
self.line_3.setFrameShape(QtWidgets.QFrame.HLine)
self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_3.setObjectName("line_3")
self.verticalLayout_3.addWidget(self.line_3)
self.checkBox_Gaussian = QtWidgets.QCheckBox(self.groupBox)
font = QtGui.QFont()
font.setPointSize(10)
self.checkBox_Gaussian.setFont(font)
self.checkBox_Gaussian.setStyleSheet("color: rgb(255, 255, 255);\n"
"background-color: qlineargradient( x1:0, y1:1, x2:2, y2:0);\n"
"\n"
"\n"
"")
self.checkBox_Gaussian.setObjectName("checkBox_Gaussian")
self.verticalLayout_3.addWidget(self.checkBox_Gaussian)
self.checkBox_Median = QtWidgets.QCheckBox(self.groupBox)
font = QtGui.QFont()
font.setPointSize(10)
self.checkBox_Median.setFont(font)
self.checkBox_Median.setStyleSheet("color: rgb(255, 255, 255);\n"
"background-color: qlineargradient( x1:0, y1:1, x2:2, y2:0);")
self.checkBox_Median.setObjectName("checkBox_Median")
self.verticalLayout_3.addWidget(self.checkBox_Median)
self.checkBox_Average = QtWidgets.QCheckBox(self.groupBox)
font = QtGui.QFont()
font.setPointSize(10)
self.checkBox_Average.setFont(font)
self.checkBox_Average.setStyleSheet("color: rgb(255, 255, 255);\n"
"background-color: qlineargradient( x1:0, y1:1, x2:2, y2:0);")
self.checkBox_Average.setObjectName("checkBox_Average")
self.verticalLayout_3.addWidget(self.checkBox_Average)
self.checkBox_Laplacian = QtWidgets.QCheckBox(self.groupBox)
font = QtGui.QFont()
font.setPointSize(10)
self.checkBox_Laplacian.setFont(font)
self.checkBox_Laplacian.setStyleSheet("color: rgb(255, 255, 255);\n"
"background-color: qlineargradient( x1:0, y1:1, x2:2, y2:0);")
self.checkBox_Laplacian.setObjectName("checkBox_Laplacian")
self.verticalLayout_3.addWidget(self.checkBox_Laplacian)
self.checkBox_Sobel = QtWidgets.QCheckBox(self.groupBox)
font = QtGui.QFont()
font.setPointSize(10)
self.checkBox_Sobel.setFont(font)
self.checkBox_Sobel.setStyleSheet("color: rgb(255, 255, 255);\n"
"background-color: qlineargradient( x1:0, y1:1, x2:2, y2:0);")
self.checkBox_Sobel.setObjectName("checkBox_Sobel")
self.verticalLayout_3.addWidget(self.checkBox_Sobel)
self.checkBox_Scharr = QtWidgets.QCheckBox(self.groupBox)
font = QtGui.QFont()
font.setPointSize(10)
self.checkBox_Scharr.setFont(font)
self.checkBox_Scharr.setStyleSheet("color: rgb(255, 255, 255);\n"
"background-color: qlineargradient( x1:0, y1:1, x2:2, y2:0);")
self.checkBox_Scharr.setObjectName("checkBox_Scharr")
self.verticalLayout_3.addWidget(self.checkBox_Scharr)
self.checkBox_Morphological = QtWidgets.QCheckBox(self.groupBox)
font = QtGui.QFont()
font.setPointSize(10)
self.checkBox_Morphological.setFont(font)
self.checkBox_Morphological.setStyleSheet("color: rgb(255, 255, 255);\n"
"background-color: qlineargradient( x1:0, y1:1, x2:2, y2:0);")
self.checkBox_Morphological.setObjectName("checkBox_Morphological")
self.verticalLayout_3.addWidget(self.checkBox_Morphological)
self.horizontalLayout_2.addWidget(self.groupBox)
self.groupBox_2 = QtWidgets.QGroupBox(self.frame_4)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
self.groupBox_2.setFont(font)
self.groupBox_2.setStyleSheet("color:rgb(255, 85, 0)")
self.groupBox_2.setAlignment(QtCore.Qt.AlignCenter)
self.groupBox_2.setObjectName("groupBox_2")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_2)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.groupBox_3 = QtWidgets.QGroupBox(self.groupBox_2)
font = QtGui.QFont()
font.setPointSize(11)
font.setBold(True)
font.setUnderline(False)
self.groupBox_3.setFont(font)
self.groupBox_3.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
self.groupBox_3.setMouseTracking(False)
self.groupBox_3.setFocusPolicy(QtCore.Qt.ClickFocus)
self.groupBox_3.setObjectName("groupBox_3")
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.groupBox_3)
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.line_2 = QtWidgets.QFrame(self.groupBox_3)
self.line_2.setStyleSheet("background-color: rgb(255, 170, 0);")
self.line_2.setFrameShape(QtWidgets.QFrame.HLine)
self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_2.setObjectName("line_2")
self.verticalLayout_4.addWidget(self.line_2)
self.radioButton_RGB = QtWidgets.QRadioButton(self.groupBox_3)
self.radioButton_RGB.setStyleSheet("color: rgb(255, 255, 255);\n"
"background-color: qlineargradient( x1:0, y1:1, x2:2, y2:0);")
self.radioButton_RGB.setObjectName("radioButton_RGB")
self.verticalLayout_4.addWidget(self.radioButton_RGB)
self.radioButton_YCbCr = QtWidgets.QRadioButton(self.groupBox_3)
self.radioButton_YCbCr.setStyleSheet("color: rgb(255, 255, 255);\n"
"background-color: qlineargradient( x1:0, y1:1, x2:2, y2:0);")
self.radioButton_YCbCr.setObjectName("radioButton_YCbCr")
self.verticalLayout_4.addWidget(self.radioButton_YCbCr)
self.radioButton_Grayscale = QtWidgets.QRadioButton(self.groupBox_3)
font = QtGui.QFont()
font.setPointSize(10)
self.radioButton_Grayscale.setFont(font)
self.radioButton_Grayscale.setStyleSheet("color: rgb(255, 255, 255);\n"
"background-color: qlineargradient( x1:0, y1:1, x2:2, y2:0);")
self.radioButton_Grayscale.setObjectName("radioButton_Grayscale")
self.verticalLayout_4.addWidget(self.radioButton_Grayscale)
self.verticalLayout_2.addWidget(self.groupBox_3)
self.groupBox_4 = QtWidgets.QGroupBox(self.groupBox_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.groupBox_4.sizePolicy().hasHeightForWidth())
self.groupBox_4.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(11)
font.setBold(True)
self.groupBox_4.setFont(font)
self.groupBox_4.setObjectName("groupBox_4")
self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.groupBox_4)
self.verticalLayout_5.setObjectName("verticalLayout_5")
self.line = QtWidgets.QFrame(self.groupBox_4)
self.line.setStyleSheet("background-color: rgb(255, 170, 0);")
self.line.setFrameShape(QtWidgets.QFrame.HLine)
self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line.setObjectName("line")
self.verticalLayout_5.addWidget(self.line)
self.radioButton_Salt = QtWidgets.QRadioButton(self.groupBox_4)
font = QtGui.QFont()
font.setPointSize(10)
self.radioButton_Salt.setFont(font)
self.radioButton_Salt.setStyleSheet("color: rgb(255, 255, 255);\n"
"background-color: qlineargradient( x1:0, y1:1, x2:2, y2:0);\n"
"")
self.radioButton_Salt.setObjectName("radioButton_Salt")
self.verticalLayout_5.addWidget(self.radioButton_Salt)
self.radioButton_Gaussian = QtWidgets.QRadioButton(self.groupBox_4)
font = QtGui.QFont()
font.setPointSize(10)
self.radioButton_Gaussian.setFont(font)
self.radioButton_Gaussian.setStyleSheet("color: rgb(255, 255, 255);\n"
"background-color: qlineargradient( x1:0, y1:1, x2:2, y2:0);")
self.radioButton_Gaussian.setObjectName("radioButton_Gaussian")
self.verticalLayout_5.addWidget(self.radioButton_Gaussian)
self.radioButton_Pencil = QtWidgets.QRadioButton(self.groupBox_4)
font = QtGui.QFont()
font.setPointSize(10)
self.radioButton_Pencil.setFont(font)
self.radioButton_Pencil.setStyleSheet("color: rgb(255, 255, 255);\n"
"background-color: qlineargradient( x1:0, y1:1, x2:2, y2:0);\n"
"")
self.radioButton_Pencil.setObjectName("radioButton_Pencil")
self.verticalLayout_5.addWidget(self.radioButton_Pencil)
self.radioButton_Cartoon = QtWidgets.QRadioButton(self.groupBox_4)
font = QtGui.QFont()
font.setPointSize(10)
self.radioButton_Cartoon.setFont(font)
self.radioButton_Cartoon.setStyleSheet("color: rgb(255, 255, 255);\n"
"background-color: qlineargradient( x1:0, y1:1, x2:2, y2:0);")
self.radioButton_Cartoon.setObjectName("radioButton_Cartoon")
self.verticalLayout_5.addWidget(self.radioButton_Cartoon)
self.radioButton_Oilpainting = QtWidgets.QRadioButton(self.groupBox_4)
font = QtGui.QFont()
font.setPointSize(10)
self.radioButton_Oilpainting.setFont(font)
self.radioButton_Oilpainting.setStyleSheet("color: rgb(255, 255, 255);\n"
"background-color: qlineargradient( x1:0, y1:1, x2:2, y2:0);")
self.radioButton_Oilpainting.setObjectName("radioButton_Oilpainting")
self.verticalLayout_5.addWidget(self.radioButton_Oilpainting)
self.verticalLayout_2.addWidget(self.groupBox_4)
self.horizontalLayout_2.addWidget(self.groupBox_2)
self.verticalLayout.addWidget(self.frame_4)
self.frame_5 = QtWidgets.QFrame(self.frame_3)
self.frame_5.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_5.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_5.setObjectName("frame_5")
self.gridLayout = QtWidgets.QGridLayout(self.frame_5)
self.gridLayout.setObjectName("gridLayout")
self.groupBox_5 = QtWidgets.QGroupBox(self.frame_5)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
self.groupBox_5.setFont(font)
self.groupBox_5.setStyleSheet("color: rgb(255, 85, 0);\n"
"")
self.groupBox_5.setObjectName("groupBox_5")
self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.groupBox_5)
self.verticalLayout_7.setObjectName("verticalLayout_7")
self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.label_2 = QtWidgets.QLabel(self.groupBox_5)
font = QtGui.QFont()
font.setPointSize(10)
self.label_2.setFont(font)
self.label_2.setStyleSheet("color: rgb(255, 255, 255);")
self.label_2.setObjectName("label_2")
self.horizontalLayout_4.addWidget(self.label_2)
self.spinBox_Zoom = QtWidgets.QSpinBox(self.groupBox_5)
self.spinBox_Zoom.setStyleSheet("color: rgb(255, 255, 255);")
self.spinBox_Zoom.setObjectName("spinBox_Zoom")
self.horizontalLayout_4.addWidget(self.spinBox_Zoom)
self.verticalLayout_7.addLayout(self.horizontalLayout_4)
self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
self.label_3 = QtWidgets.QLabel(self.groupBox_5)
font = QtGui.QFont()
font.setPointSize(10)
self.label_3.setFont(font)
self.label_3.setStyleSheet("color: rgb(255, 255, 255);")
self.label_3.setObjectName("label_3")
self.horizontalLayout_5.addWidget(self.label_3)
self.spinBox_Brightness = QtWidgets.QSpinBox(self.groupBox_5)
self.spinBox_Brightness.setStyleSheet("color: rgb(255, 255, 255);")
self.spinBox_Brightness.setObjectName("spinBox_Brightness")
self.horizontalLayout_5.addWidget(self.spinBox_Brightness)
self.verticalLayout_7.addLayout(self.horizontalLayout_5)
self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
self.label_4 = QtWidgets.QLabel(self.groupBox_5)
font = QtGui.QFont()
font.setPointSize(10)
self.label_4.setFont(font)
self.label_4.setStyleSheet("color: rgb(255, 255, 255);")
self.label_4.setObjectName("label_4")
self.horizontalLayout_6.addWidget(self.label_4)
self.spinBox_Contrast = QtWidgets.QSpinBox(self.groupBox_5)
self.spinBox_Contrast.setStyleSheet("color: rgb(255, 255, 255);")
self.spinBox_Contrast.setObjectName("spinBox_Contrast")
self.horizontalLayout_6.addWidget(self.spinBox_Contrast)
self.verticalLayout_7.addLayout(self.horizontalLayout_6)
self.gridLayout.addWidget(self.groupBox_5, 0, 0, 1, 1)
self.verticalLayout.addWidget(self.frame_5)
self.horizontalLayout.addWidget(self.frame_3)
self.frame_2 = QtWidgets.QFrame(self.centralwidget)
self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_2.setFrameShadow(QtWidgets.QFrame.Plain)
self.frame_2.setObjectName("frame_2")
self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.frame_2)
self.verticalLayout_6.setObjectName("verticalLayout_6")
self.input_image = QtWidgets.QLabel(self.frame_2)
self.input_image.setEnabled(True)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.input_image.sizePolicy().hasHeightForWidth())
self.input_image.setSizePolicy(sizePolicy)
self.input_image.setMinimumSize(QtCore.QSize(0, 0))
self.input_image.setBaseSize(QtCore.QSize(0, 0))
self.input_image.setMouseTracking(False)
self.input_image.setFocusPolicy(QtCore.Qt.NoFocus)
self.input_image.setLayoutDirection(QtCore.Qt.LeftToRight)
self.input_image.setAutoFillBackground(False)
self.input_image.setStyleSheet("")
self.input_image.setLineWidth(1)
self.input_image.setText("")
self.input_image.setScaledContents(True)
self.input_image.setAlignment(QtCore.Qt.AlignCenter)
self.input_image.setWordWrap(False)
self.input_image.setObjectName("input_image")
self.verticalLayout_6.addWidget(self.input_image)
self.label_6 = QtWidgets.QLabel(self.frame_2)
font = QtGui.QFont()
font.setPointSize(13)
font.setBold(True)
self.label_6.setFont(font)
self.label_6.setStyleSheet("color: rgb(255, 255, 255);\n"
"background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(0, 0, 0, 255), stop:1 rgba(255, 255, 255, 255));")
self.label_6.setAlignment(QtCore.Qt.AlignCenter)
self.label_6.setObjectName("label_6")
self.verticalLayout_6.addWidget(self.label_6)
self.horizontalLayout.addWidget(self.frame_2)
self.frame = QtWidgets.QFrame(self.centralwidget)
self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame.setFrameShadow(QtWidgets.QFrame.Plain)
self.frame.setObjectName("frame")
self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.frame)
self.verticalLayout_8.setObjectName("verticalLayout_8")
self.output_image = QtWidgets.QLabel(self.frame)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.output_image.sizePolicy().hasHeightForWidth())
self.output_image.setSizePolicy(sizePolicy)
self.output_image.setLayoutDirection(QtCore.Qt.LeftToRight)
self.output_image.setStyleSheet("")
self.output_image.setText("")
self.output_image.setScaledContents(True)
self.output_image.setAlignment(QtCore.Qt.AlignCenter)
self.output_image.setObjectName("output_image")
self.verticalLayout_8.addWidget(self.output_image)
self.label_8 = QtWidgets.QLabel(self.frame)
font = QtGui.QFont()
font.setPointSize(13)
font.setBold(True)
self.label_8.setFont(font)
self.label_8.setStyleSheet("color: rgb(255, 255, 255);\n"
"background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(0, 0, 0, 255), stop:1 rgba(255, 255, 255, 255));")
self.label_8.setAlignment(QtCore.Qt.AlignCenter)
self.label_8.setObjectName("label_8")
self.verticalLayout_8.addWidget(self.label_8)
self.horizontalLayout.addWidget(self.frame)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 22))
self.menubar.setStyleSheet("color: rgb(255, 255, 255);")
self.menubar.setObjectName("menubar")
self.menuEdit = QtWidgets.QMenu(self.menubar)
self.menuEdit.setStyleSheet("background-color: rgb(255, 255, 255);\n"
"background-color: qlineargradient( x1:0, y1:1, x2:2, y2:0);")
self.menuEdit.setObjectName("menuEdit")
self.menuView = QtWidgets.QMenu(self.menubar)
self.menuView.setStyleSheet("background-color: rgb(255, 255, 255);\n"
"background-color: qlineargradient( x1:0, y1:1, x2:2, y2:0);")
self.menuView.setObjectName("menuView")
self.menuHelp = QtWidgets.QMenu(self.menubar)
self.menuHelp.setStyleSheet("background-color: rgb(255, 255, 255);\n"
"background-color: qlineargradient( x1:0, y1:1, x2:2, y2:0);")
self.menuHelp.setObjectName("menuHelp")
self.menuFile = QtWidgets.QMenu(self.menubar)
self.menuFile.setObjectName("menuFile")
MainWindow.setMenuBar(self.menubar)
self.actionNew_Ctrl_N = QtWidgets.QAction(MainWindow)
self.actionNew_Ctrl_N.setObjectName("actionNew_Ctrl_N")
self.actionOpen_Ctrl_O = QtWidgets.QAction(MainWindow)
self.actionOpen_Ctrl_O.setObjectName("actionOpen_Ctrl_O")
self.actionSave = QtWidgets.QAction(MainWindow)
self.actionSave.setObjectName("actionSave")
self.actionSave_As = QtWidgets.QAction(MainWindow)
self.actionSave_As.setObjectName("actionSave_As")
self.actionPrint_Ctrl_P = QtWidgets.QAction(MainWindow)
self.actionPrint_Ctrl_P.setObjectName("actionPrint_Ctrl_P")
self.actionExit = QtWidgets.QAction(MainWindow)
self.actionExit.setObjectName("actionExit")
self.actionUndo_Ctrl_Z = QtWidgets.QAction(MainWindow)
self.actionUndo_Ctrl_Z.setObjectName("actionUndo_Ctrl_Z")
self.actionRedo_Ctrl_Y = QtWidgets.QAction(MainWindow)
self.actionRedo_Ctrl_Y.setObjectName("actionRedo_Ctrl_Y")
self.actionCut_Ctrl_X = QtWidgets.QAction(MainWindow)
self.actionCut_Ctrl_X.setObjectName("actionCut_Ctrl_X")
self.actionCopy_Ctrl_C = QtWidgets.QAction(MainWindow)
self.actionCopy_Ctrl_C.setObjectName("actionCopy_Ctrl_C")
self.actionPaste_Ctrl_V = QtWidgets.QAction(MainWindow)
self.actionPaste_Ctrl_V.setObjectName("actionPaste_Ctrl_V")
self.actionDelet = QtWidgets.QAction(MainWindow)
self.actionDelet.setObjectName("actionDelet")
self.actionClose = QtWidgets.QAction(MainWindow)
self.actionClose.setObjectName("actionClose")
self.actionZoom_In = QtWidgets.QAction(MainWindow)
self.actionZoom_In.setObjectName("actionZoom_In")
self.actionZoom_Out = QtWidgets.QAction(MainWindow)
self.actionZoom_Out.setObjectName("actionZoom_Out")
self.actionFit = QtWidgets.QAction(MainWindow)
self.actionFit.setObjectName("actionFit")
self.actionAbout = QtWidgets.QAction(MainWindow)
self.actionAbout.setObjectName("actionAbout")
self.actionNew = QtWidgets.QAction(MainWindow)
self.actionNew.setObjectName("actionNew")
self.actionOpen = QtWidgets.QAction(MainWindow)
self.actionOpen.setObjectName("actionOpen")
self.actionSave_Ctrl_S = QtWidgets.QAction(MainWindow)
self.actionSave_Ctrl_S.setObjectName("actionSave_Ctrl_S")
self.actionSave_As_2 = QtWidgets.QAction(MainWindow)
self.actionSave_As_2.setObjectName("actionSave_As_2")
self.actionPrint = QtWidgets.QAction(MainWindow)
self.actionPrint.setObjectName("actionPrint")
self.actionClose_Ctrl_F4 = QtWidgets.QAction(MainWindow)
self.actionClose_Ctrl_F4.setObjectName("actionClose_Ctrl_F4")
self.actionQuit = QtWidgets.QAction(MainWindow)
self.actionQuit.setObjectName("actionQuit")
self.menuEdit.addAction(self.actionUndo_Ctrl_Z)
self.menuEdit.addAction(self.actionRedo_Ctrl_Y)
self.menuEdit.addSeparator()
self.menuEdit.addAction(self.actionCut_Ctrl_X)
self.menuEdit.addAction(self.actionCopy_Ctrl_C)
self.menuEdit.addAction(self.actionPaste_Ctrl_V)
self.menuEdit.addSeparator()
self.menuEdit.addAction(self.actionDelet)
self.menuView.addAction(self.actionZoom_In)
self.menuView.addAction(self.actionZoom_Out)
self.menuView.addAction(self.actionFit)
self.menuHelp.addAction(self.actionAbout)
self.menuHelp.addSeparator()
self.menuFile.addAction(self.actionNew)
self.menuFile.addAction(self.actionOpen)
self.menuFile.addAction(self.actionSave_Ctrl_S)
self.menuFile.addAction(self.actionSave_As_2)
self.menuFile.addSeparator()
self.menuFile.addAction(self.actionPrint)
self.menuFile.addSeparator()
self.menuFile.addAction(self.actionClose_Ctrl_F4)
self.menuFile.addAction(self.actionQuit)
self.menubar.addAction(self.menuFile.menuAction())
self.menubar.addAction(self.menuEdit.menuAction())
self.menubar.addAction(self.menuView.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", "MainWindow"))
self.groupBox.setTitle(_translate("MainWindow", "Filters"))
self.label.setText(_translate("MainWindow", "Kernel size"))
self.checkBox_Gaussian.setText(_translate("MainWindow", "Gaussian"))
self.checkBox_Median.setText(_translate("MainWindow", "Median"))
self.checkBox_Average.setText(_translate("MainWindow", "Average"))
self.checkBox_Laplacian.setText(_translate("MainWindow", "Laplacian"))
self.checkBox_Sobel.setText(_translate("MainWindow", "Sobel"))
self.checkBox_Scharr.setText(_translate("MainWindow", "Scharr"))
self.checkBox_Morphological.setText(_translate("MainWindow", "Morphological"))
self.groupBox_2.setTitle(_translate("MainWindow", "Operations"))
self.groupBox_3.setTitle(_translate("MainWindow", "Color"))
self.radioButton_RGB.setText(_translate("MainWindow", "RGB"))
self.radioButton_YCbCr.setText(_translate("MainWindow", "YCbCr"))
self.radioButton_Grayscale.setText(_translate("MainWindow", "Grayscale"))
self.groupBox_4.setTitle(_translate("MainWindow", "Noise, Stylization"))
self.radioButton_Salt.setText(_translate("MainWindow", "Salt and pepper"))
self.radioButton_Gaussian.setText(_translate("MainWindow", "Gaussian"))
self.radioButton_Pencil.setText(_translate("MainWindow", "Pencil sketch"))
self.radioButton_Cartoon.setText(_translate("MainWindow", "Cartoon sketch"))
self.radioButton_Oilpainting.setText(_translate("MainWindow", "Oil painting sketch"))
self.groupBox_5.setTitle(_translate("MainWindow", "Controls"))
self.label_2.setText(_translate("MainWindow", "Zoom"))
self.label_3.setText(_translate("MainWindow", "Brightness"))
self.label_4.setText(_translate("MainWindow", "Contrast"))
self.label_6.setText(_translate("MainWindow", "Input Image"))
self.label_8.setText(_translate("MainWindow", "Output Image"))
self.menuEdit.setTitle(_translate("MainWindow", "Edit"))
self.menuView.setTitle(_translate("MainWindow", "View"))
self.menuHelp.setTitle(_translate("MainWindow", "Help"))
self.menuFile.setTitle(_translate("MainWindow", "File"))
self.actionNew_Ctrl_N.setText(_translate("MainWindow", "New... Ctrl+N"))
self.actionOpen_Ctrl_O.setText(_translate("MainWindow", "Open... Ctrl+O"))
self.actionSave.setText(_translate("MainWindow", "Save Ctrl+S"))
self.actionSave_As.setText(_translate("MainWindow", "Save As..."))
self.actionPrint_Ctrl_P.setText(_translate("MainWindow", "Print Ctrl+P"))
self.actionExit.setText(_translate("MainWindow", "Quit"))
self.actionUndo_Ctrl_Z.setText(_translate("MainWindow", "Undo Ctrl+Z"))
self.actionRedo_Ctrl_Y.setText(_translate("MainWindow", "Redo Ctrl+Y"))
self.actionCut_Ctrl_X.setText(_translate("MainWindow", "Cut Ctrl+X"))
self.actionCopy_Ctrl_C.setText(_translate("MainWindow", "Copy Ctrl+C"))
self.actionPaste_Ctrl_V.setText(_translate("MainWindow", "Paste Ctrl+V"))
self.actionDelet.setText(_translate("MainWindow", "Delete"))
self.actionClose.setText(_translate("MainWindow", "Close Ctrl+F4"))
self.actionZoom_In.setText(_translate("MainWindow", "Zoom In"))
self.actionZoom_Out.setText(_translate("MainWindow", "Zoom Out"))
self.actionFit.setText(_translate("MainWindow", "Fit"))
self.actionAbout.setText(_translate("MainWindow", "About "))
self.actionNew.setText(_translate("MainWindow", "New... Ctrl+N"))
self.actionNew.setShortcut(_translate("MainWindow", "Ctrl+N"))
self.actionOpen.setText(_translate("MainWindow", "Open... Ctrl+O"))
self.actionOpen.setShortcut(_translate("MainWindow", "Ctrl+O"))
self.actionSave_Ctrl_S.setText(_translate("MainWindow", "Save Ctrl+S"))
self.actionSave_Ctrl_S.setShortcut(_translate("MainWindow", "Ctrl+S"))
self.actionSave_As_2.setText(_translate("MainWindow", "Save As "))
self.actionPrint.setText(_translate("MainWindow", "Print Ctrl+P"))
self.actionPrint.setShortcut(_translate("MainWindow", "Ctrl+P"))
self.actionClose_Ctrl_F4.setText(_translate("MainWindow", "Close Ctrl+F4"))
self.actionClose_Ctrl_F4.setShortcut(_translate("MainWindow", "Ctrl+F4"))
self.actionQuit.setText(_translate("MainWindow", "Quit"))