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