-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwebcam_ui.py
120 lines (113 loc) · 6.47 KB
/
webcam_ui.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '..\webcam.ui'
#
# Created by: PyQt5 UI code generator 5.15.0
#
# 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(778, 499)
self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
self.buttonBox.setGeometry(QtCore.QRect(340, 510, 341, 32))
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
self.buttonBox.setObjectName("buttonBox")
self.checkBox = QtWidgets.QCheckBox(Dialog)
self.checkBox.setGeometry(QtCore.QRect(60, 60, 141, 17))
self.checkBox.setObjectName("checkBox")
self.layoutWidget = QtWidgets.QWidget(Dialog)
self.layoutWidget.setGeometry(QtCore.QRect(40, 20, 200, 22))
self.layoutWidget.setObjectName("layoutWidget")
self.horizontalLayout_14 = QtWidgets.QHBoxLayout(self.layoutWidget)
self.horizontalLayout_14.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_14.setObjectName("horizontalLayout_14")
self.label_15 = QtWidgets.QLabel(self.layoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_15.sizePolicy().hasHeightForWidth())
self.label_15.setSizePolicy(sizePolicy)
self.label_15.setObjectName("label_15")
self.horizontalLayout_14.addWidget(self.label_15)
self.spinBox_2 = QtWidgets.QSpinBox(self.layoutWidget)
self.spinBox_2.setMaximum(999999)
self.spinBox_2.setProperty("value", 1)
self.spinBox_2.setObjectName("spinBox_2")
self.horizontalLayout_14.addWidget(self.spinBox_2)
self.checkBox_2 = QtWidgets.QCheckBox(Dialog)
self.checkBox_2.setGeometry(QtCore.QRect(50, 150, 141, 17))
self.checkBox_2.setObjectName("checkBox_2")
self.layoutWidget_2 = QtWidgets.QWidget(Dialog)
self.layoutWidget_2.setGeometry(QtCore.QRect(60, 80, 153, 22))
self.layoutWidget_2.setObjectName("layoutWidget_2")
self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.layoutWidget_2)
self.horizontalLayout_7.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_7.setObjectName("horizontalLayout_7")
self.label_7 = QtWidgets.QLabel(self.layoutWidget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_7.sizePolicy().hasHeightForWidth())
self.label_7.setSizePolicy(sizePolicy)
self.label_7.setObjectName("label_7")
self.horizontalLayout_7.addWidget(self.label_7)
self.doubleSpinBox_6 = QtWidgets.QDoubleSpinBox(self.layoutWidget_2)
self.doubleSpinBox_6.setMinimum(-14.0)
self.doubleSpinBox_6.setMaximum(0.0)
self.doubleSpinBox_6.setProperty("value", -5.0)
self.doubleSpinBox_6.setObjectName("doubleSpinBox_6")
self.horizontalLayout_7.addWidget(self.doubleSpinBox_6)
self.layoutWidget_3 = QtWidgets.QWidget(Dialog)
self.layoutWidget_3.setGeometry(QtCore.QRect(50, 170, 153, 22))
self.layoutWidget_3.setObjectName("layoutWidget_3")
self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.layoutWidget_3)
self.horizontalLayout_8.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_8.setObjectName("horizontalLayout_8")
self.label_8 = QtWidgets.QLabel(self.layoutWidget_3)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_8.sizePolicy().hasHeightForWidth())
self.label_8.setSizePolicy(sizePolicy)
self.label_8.setObjectName("label_8")
self.horizontalLayout_8.addWidget(self.label_8)
self.doubleSpinBox_7 = QtWidgets.QDoubleSpinBox(self.layoutWidget_3)
self.doubleSpinBox_7.setMinimum(2500.0)
self.doubleSpinBox_7.setMaximum(10000.0)
self.doubleSpinBox_7.setProperty("value", 4000.0)
self.doubleSpinBox_7.setObjectName("doubleSpinBox_7")
self.horizontalLayout_8.addWidget(self.doubleSpinBox_7)
self.pushButton = QtWidgets.QPushButton(Dialog)
self.pushButton.setGeometry(QtCore.QRect(80, 300, 75, 23))
self.pushButton.setObjectName("pushButton")
self.pushButton_2 = QtWidgets.QPushButton(Dialog)
self.pushButton_2.setGeometry(QtCore.QRect(70, 340, 75, 23))
self.pushButton_2.setObjectName("pushButton_2")
self.checkBox_3 = QtWidgets.QCheckBox(Dialog)
self.checkBox_3.setGeometry(QtCore.QRect(60, 220, 141, 17))
self.checkBox_3.setObjectName("checkBox_3")
self.graphicsView = QtWidgets.QGraphicsView(Dialog)
self.graphicsView.setGeometry(QtCore.QRect(250, 20, 501, 401))
self.graphicsView.setObjectName("graphicsView")
self.pushButton_3 = QtWidgets.QPushButton(Dialog)
self.pushButton_3.setGeometry(QtCore.QRect(80, 270, 75, 23))
self.pushButton_3.setObjectName("pushButton_3")
self.retranslateUi(Dialog)
self.buttonBox.accepted.connect(Dialog.accept)
self.buttonBox.rejected.connect(Dialog.reject)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
self.checkBox.setText(_translate("Dialog", "Auto exposure"))
self.label_15.setText(_translate("Dialog", "Camera ID"))
self.checkBox_2.setText(_translate("Dialog", "Auto WB"))
self.label_7.setText(_translate("Dialog", "Exposure"))
self.label_8.setText(_translate("Dialog", "WB"))
self.pushButton.setText(_translate("Dialog", "Open"))
self.pushButton_2.setText(_translate("Dialog", "Close"))
self.checkBox_3.setText(_translate("Dialog", "Preview enable"))
self.pushButton_3.setText(_translate("Dialog", "Settings"))