hytos / DTI_PID / DTI_PID / OcrResultDialog_UI.py @ 698d2bef
이력 | 보기 | 이력해설 | 다운로드 (9.45 KB)
1 |
# -*- coding: utf-8 -*-
|
---|---|
2 |
|
3 |
# Form implementation generated from reading ui file './UI/OcrResultDialog.ui'
|
4 |
#
|
5 |
# Created by: PyQt5 UI code generator 5.11.3
|
6 |
#
|
7 |
# WARNING! All changes made in this file will be lost!
|
8 |
|
9 |
from PyQt5 import QtCore, QtGui, QtWidgets |
10 |
|
11 |
class Ui_Dialog(object): |
12 |
def setupUi(self, Dialog): |
13 |
Dialog.setObjectName("Dialog")
|
14 |
Dialog.resize(1080, 650) |
15 |
Dialog.setMinimumSize(QtCore.QSize(1080, 650)) |
16 |
font = QtGui.QFont() |
17 |
font.setFamily("맑은 고딕")
|
18 |
font.setBold(True)
|
19 |
font.setWeight(75)
|
20 |
Dialog.setFont(font) |
21 |
self.gridLayout_2 = QtWidgets.QGridLayout(Dialog)
|
22 |
self.gridLayout_2.setObjectName("gridLayout_2") |
23 |
self.splitter = QtWidgets.QSplitter(Dialog)
|
24 |
self.splitter.setOrientation(QtCore.Qt.Vertical)
|
25 |
self.splitter.setObjectName("splitter") |
26 |
self.topWidget = QtWidgets.QWidget(self.splitter) |
27 |
self.topWidget.setMinimumSize(QtCore.QSize(0, 150)) |
28 |
self.topWidget.setObjectName("topWidget") |
29 |
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.topWidget) |
30 |
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0) |
31 |
self.verticalLayout_2.setObjectName("verticalLayout_2") |
32 |
self.tVerticalLayout_2 = QtWidgets.QVBoxLayout()
|
33 |
self.tVerticalLayout_2.setObjectName("tVerticalLayout_2") |
34 |
self.gridLayout = QtWidgets.QGridLayout()
|
35 |
self.gridLayout.setObjectName("gridLayout") |
36 |
self.comboBoxOCRData = QtWidgets.QComboBox(self.topWidget) |
37 |
self.comboBoxOCRData.setObjectName("comboBoxOCRData") |
38 |
self.gridLayout.addWidget(self.comboBoxOCRData, 0, 3, 1, 1) |
39 |
self.clockPushButton_2 = QtWidgets.QPushButton(self.topWidget) |
40 |
self.clockPushButton_2.setMinimumSize(QtCore.QSize(0, 60)) |
41 |
self.clockPushButton_2.setMaximumSize(QtCore.QSize(60, 60)) |
42 |
self.clockPushButton_2.setText("") |
43 |
icon = QtGui.QIcon() |
44 |
icon.addPixmap(QtGui.QPixmap(":/newPrefix/Rotate_Plus.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
45 |
self.clockPushButton_2.setIcon(icon)
|
46 |
self.clockPushButton_2.setIconSize(QtCore.QSize(32, 32)) |
47 |
self.clockPushButton_2.setObjectName("clockPushButton_2") |
48 |
self.gridLayout.addWidget(self.clockPushButton_2, 0, 5, 1, 1) |
49 |
self.redetectPushButton = QtWidgets.QPushButton(self.topWidget) |
50 |
self.redetectPushButton.setMinimumSize(QtCore.QSize(0, 60)) |
51 |
self.redetectPushButton.setMaximumSize(QtCore.QSize(60, 60)) |
52 |
self.redetectPushButton.setText("") |
53 |
icon1 = QtGui.QIcon() |
54 |
icon1.addPixmap(QtGui.QPixmap(":/newPrefix/OCR.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
55 |
self.redetectPushButton.setIcon(icon1)
|
56 |
self.redetectPushButton.setIconSize(QtCore.QSize(32, 32)) |
57 |
self.redetectPushButton.setObjectName("redetectPushButton") |
58 |
self.gridLayout.addWidget(self.redetectPushButton, 0, 6, 1, 1) |
59 |
self.counterClockPushButton_2 = QtWidgets.QPushButton(self.topWidget) |
60 |
self.counterClockPushButton_2.setMinimumSize(QtCore.QSize(0, 60)) |
61 |
self.counterClockPushButton_2.setMaximumSize(QtCore.QSize(60, 60)) |
62 |
self.counterClockPushButton_2.setText("") |
63 |
icon2 = QtGui.QIcon() |
64 |
icon2.addPixmap(QtGui.QPixmap(":/newPrefix/Rotate_Minus.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
65 |
self.counterClockPushButton_2.setIcon(icon2)
|
66 |
self.counterClockPushButton_2.setIconSize(QtCore.QSize(32, 32)) |
67 |
self.counterClockPushButton_2.setObjectName("counterClockPushButton_2") |
68 |
self.gridLayout.addWidget(self.counterClockPushButton_2, 0, 4, 1, 1) |
69 |
self.targetTextLabel_2 = QtWidgets.QLabel(self.topWidget) |
70 |
self.targetTextLabel_2.setMinimumSize(QtCore.QSize(0, 60)) |
71 |
self.targetTextLabel_2.setMaximumSize(QtCore.QSize(16777215, 60)) |
72 |
font = QtGui.QFont() |
73 |
font.setBold(True)
|
74 |
font.setWeight(75)
|
75 |
self.targetTextLabel_2.setFont(font)
|
76 |
self.targetTextLabel_2.setObjectName("targetTextLabel_2") |
77 |
self.gridLayout.addWidget(self.targetTextLabel_2, 0, 0, 1, 1) |
78 |
self.label = QtWidgets.QLabel(self.topWidget) |
79 |
self.label.setObjectName("label") |
80 |
self.gridLayout.addWidget(self.label, 0, 2, 1, 1) |
81 |
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
82 |
self.gridLayout.addItem(spacerItem, 0, 1, 1, 1) |
83 |
self.tVerticalLayout_2.addLayout(self.gridLayout) |
84 |
self.horizontalLayoutGraphicsView = QtWidgets.QHBoxLayout()
|
85 |
self.horizontalLayoutGraphicsView.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize)
|
86 |
self.horizontalLayoutGraphicsView.setObjectName("horizontalLayoutGraphicsView") |
87 |
self.tVerticalLayout_2.addLayout(self.horizontalLayoutGraphicsView) |
88 |
self.verticalLayout_2.addLayout(self.tVerticalLayout_2) |
89 |
self.bottomWidget = QtWidgets.QWidget(self.splitter) |
90 |
self.bottomWidget.setMinimumSize(QtCore.QSize(0, 150)) |
91 |
self.bottomWidget.setMaximumSize(QtCore.QSize(16777215, 200)) |
92 |
self.bottomWidget.setObjectName("bottomWidget") |
93 |
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.bottomWidget) |
94 |
self.verticalLayout_4.setContentsMargins(0, 0, 0, 0) |
95 |
self.verticalLayout_4.setObjectName("verticalLayout_4") |
96 |
self.detectResultVerticalLayout_2 = QtWidgets.QVBoxLayout()
|
97 |
self.detectResultVerticalLayout_2.setContentsMargins(8, 8, 8, 8) |
98 |
self.detectResultVerticalLayout_2.setObjectName("detectResultVerticalLayout_2") |
99 |
self.gridLayout_3 = QtWidgets.QGridLayout()
|
100 |
self.gridLayout_3.setObjectName("gridLayout_3") |
101 |
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
|
102 |
self.horizontalLayout_3.setObjectName("horizontalLayout_3") |
103 |
self.detectResultLabel_2 = QtWidgets.QLabel(self.bottomWidget) |
104 |
font = QtGui.QFont() |
105 |
font.setBold(True)
|
106 |
font.setWeight(75)
|
107 |
self.detectResultLabel_2.setFont(font)
|
108 |
self.detectResultLabel_2.setObjectName("detectResultLabel_2") |
109 |
self.horizontalLayout_3.addWidget(self.detectResultLabel_2) |
110 |
self.pushButtonCopyHori = QtWidgets.QPushButton(self.bottomWidget) |
111 |
self.pushButtonCopyHori.setObjectName("pushButtonCopyHori") |
112 |
self.horizontalLayout_3.addWidget(self.pushButtonCopyHori) |
113 |
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
114 |
self.horizontalLayout_3.addItem(spacerItem1)
|
115 |
self.checkBoxSeperate = QtWidgets.QCheckBox(self.bottomWidget) |
116 |
self.checkBoxSeperate.setChecked(True) |
117 |
self.checkBoxSeperate.setObjectName("checkBoxSeperate") |
118 |
self.horizontalLayout_3.addWidget(self.checkBoxSeperate) |
119 |
self.gridLayout_3.addLayout(self.horizontalLayout_3, 0, 0, 1, 1) |
120 |
self.horizontalLayoutTextEdit = QtWidgets.QHBoxLayout()
|
121 |
self.horizontalLayoutTextEdit.setObjectName("horizontalLayoutTextEdit") |
122 |
self.gridLayout_3.addLayout(self.horizontalLayoutTextEdit, 1, 0, 1, 1) |
123 |
self.detectResultVerticalLayout_2.addLayout(self.gridLayout_3) |
124 |
self.verticalLayout_4.addLayout(self.detectResultVerticalLayout_2) |
125 |
self.gridLayout_2.addWidget(self.splitter, 1, 0, 1, 1) |
126 |
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
|
127 |
self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
128 |
self.pushButtonMakeTrainingImage = QtWidgets.QPushButton(Dialog)
|
129 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) |
130 |
sizePolicy.setHorizontalStretch(0)
|
131 |
sizePolicy.setVerticalStretch(0)
|
132 |
sizePolicy.setHeightForWidth(self.pushButtonMakeTrainingImage.sizePolicy().hasHeightForWidth())
|
133 |
self.pushButtonMakeTrainingImage.setSizePolicy(sizePolicy)
|
134 |
self.pushButtonMakeTrainingImage.setObjectName("pushButtonMakeTrainingImage") |
135 |
self.horizontalLayout_2.addWidget(self.pushButtonMakeTrainingImage) |
136 |
self.ocrDialogButtonBox = QtWidgets.QDialogButtonBox(Dialog)
|
137 |
self.ocrDialogButtonBox.setOrientation(QtCore.Qt.Horizontal)
|
138 |
self.ocrDialogButtonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
|
139 |
self.ocrDialogButtonBox.setObjectName("ocrDialogButtonBox") |
140 |
self.horizontalLayout_2.addWidget(self.ocrDialogButtonBox) |
141 |
self.gridLayout_2.addLayout(self.horizontalLayout_2, 3, 0, 1, 1) |
142 |
|
143 |
self.retranslateUi(Dialog)
|
144 |
self.ocrDialogButtonBox.accepted.connect(Dialog.accept)
|
145 |
self.ocrDialogButtonBox.rejected.connect(Dialog.reject)
|
146 |
QtCore.QMetaObject.connectSlotsByName(Dialog) |
147 |
|
148 |
def retranslateUi(self, Dialog): |
149 |
_translate = QtCore.QCoreApplication.translate |
150 |
Dialog.setWindowTitle(_translate("Dialog", "OCR")) |
151 |
self.clockPushButton_2.setToolTip(_translate("Dialog", "시계 방향 회전")) |
152 |
self.counterClockPushButton_2.setToolTip(_translate("Dialog", "반시계 방향 회전")) |
153 |
self.targetTextLabel_2.setText(_translate("Dialog", "Recognition Object")) |
154 |
self.label.setText(_translate("Dialog", "OCR Source : ")) |
155 |
self.detectResultLabel_2.setText(_translate("Dialog", "Recognition Result")) |
156 |
self.pushButtonCopyHori.setText(_translate("Dialog", "Copy")) |
157 |
self.checkBoxSeperate.setText(_translate("Dialog", "Seperate")) |
158 |
self.pushButtonMakeTrainingImage.setText(_translate("Dialog", "Save OCR Training Image")) |
159 |
|
160 |
import MainWindow_rc |
161 |
|
162 |
if __name__ == "__main__": |
163 |
import sys |
164 |
app = QtWidgets.QApplication(sys.argv) |
165 |
Dialog = QtWidgets.QDialog() |
166 |
ui = Ui_Dialog() |
167 |
ui.setupUi(Dialog) |
168 |
Dialog.show() |
169 |
sys.exit(app.exec_()) |
170 |
|