hytos / DTI_PID / DTI_PID / OcrResultDialog_UI.py @ 7196ff9e
이력 | 보기 | 이력해설 | 다운로드 (9.62 KB)
1 | 2240f7db | 김정우 | # -*- coding: utf-8 -*-
|
---|---|---|---|
2 | |||
3 | 298baf11 | humkyung | # Form implementation generated from reading ui file '.\UI\OcrResultDialog.ui'
|
4 | 2240f7db | 김정우 | #
|
5 | 298baf11 | humkyung | # Created by: PyQt5 UI code generator 5.13.0
|
6 | 2240f7db | 김정우 | #
|
7 | # WARNING! All changes made in this file will be lost!
|
||
8 | |||
9 | 298baf11 | humkyung | |
10 | 2240f7db | 김정우 | from PyQt5 import QtCore, QtGui, QtWidgets |
11 | |||
12 | 298baf11 | humkyung | |
13 | 2240f7db | 김정우 | class Ui_Dialog(object): |
14 | def setupUi(self, Dialog): |
||
15 | Dialog.setObjectName("Dialog")
|
||
16 | cc106735 | 김정우 | Dialog.resize(1080, 650) |
17 | Dialog.setMinimumSize(QtCore.QSize(1080, 650)) |
||
18 | e5ac172b | humkyung | font = QtGui.QFont() |
19 | font.setFamily("맑은 고딕")
|
||
20 | font.setBold(True)
|
||
21 | font.setWeight(75)
|
||
22 | Dialog.setFont(font) |
||
23 | 2c2a141c | humkyung | icon = QtGui.QIcon() |
24 | icon.addPixmap(QtGui.QPixmap(":/newPrefix/ID2.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||
25 | Dialog.setWindowIcon(icon) |
||
26 | 22130dab | 김정우 | 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 | cc106735 | 김정우 | self.verticalLayout_2.setObjectName("verticalLayout_2") |
37 | 2c2a141c | humkyung | 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 | b3bd19f3 | esham21 | self.comboBoxOCRData = QtWidgets.QComboBox(self.topWidget) |
49 | self.comboBoxOCRData.setObjectName("comboBoxOCRData") |
||
50 | 2c2a141c | humkyung | 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 | 22130dab | 김정우 | self.clockPushButton_2 = QtWidgets.QPushButton(self.topWidget) |
67 | 2c2a141c | humkyung | self.clockPushButton_2.setMinimumSize(QtCore.QSize(0, 0)) |
68 | self.clockPushButton_2.setMaximumSize(QtCore.QSize(60, 16777215)) |
||
69 | e5ac172b | humkyung | self.clockPushButton_2.setText("") |
70 | 2c2a141c | humkyung | icon2 = QtGui.QIcon() |
71 | a13021e5 | esham21 | icon2.addPixmap(QtGui.QPixmap(":/newPrefix/Rotate_Plus.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
72 | 2c2a141c | humkyung | self.clockPushButton_2.setIcon(icon2)
|
73 | e5ac172b | humkyung | self.clockPushButton_2.setIconSize(QtCore.QSize(32, 32)) |
74 | cc106735 | 김정우 | self.clockPushButton_2.setObjectName("clockPushButton_2") |
75 | 2c2a141c | humkyung | self.gridLayout_4.addWidget(self.clockPushButton_2, 0, 5, 1, 1) |
76 | 1cfeb071 | humkyung | self.redetectPushButton = QtWidgets.QPushButton(self.topWidget) |
77 | 2c2a141c | humkyung | self.redetectPushButton.setMinimumSize(QtCore.QSize(0, 0)) |
78 | self.redetectPushButton.setMaximumSize(QtCore.QSize(60, 16777215)) |
||
79 | 1cfeb071 | humkyung | self.redetectPushButton.setText("") |
80 | 2c2a141c | humkyung | icon3 = QtGui.QIcon() |
81 | icon3.addPixmap(QtGui.QPixmap(":/newPrefix/OCR.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||
82 | self.redetectPushButton.setIcon(icon3)
|
||
83 | 1cfeb071 | humkyung | self.redetectPushButton.setIconSize(QtCore.QSize(32, 32)) |
84 | self.redetectPushButton.setObjectName("redetectPushButton") |
||
85 | 2c2a141c | humkyung | self.gridLayout_4.addWidget(self.redetectPushButton, 0, 6, 1, 1) |
86 | f9a1bdba | humkyung | self.horizontalLayoutGraphicsView = QtWidgets.QHBoxLayout()
|
87 | 71e34951 | humkyung | self.horizontalLayoutGraphicsView.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize)
|
88 | f9a1bdba | humkyung | self.horizontalLayoutGraphicsView.setObjectName("horizontalLayoutGraphicsView") |
89 | 2c2a141c | humkyung | self.gridLayout_4.addLayout(self.horizontalLayoutGraphicsView, 1, 0, 1, 7) |
90 | self.verticalLayout_2.addLayout(self.gridLayout_4) |
||
91 | 22130dab | 김정우 | self.bottomWidget = QtWidgets.QWidget(self.splitter) |
92 | self.bottomWidget.setMinimumSize(QtCore.QSize(0, 150)) |
||
93 | 17cbda7d | humkyung | self.bottomWidget.setMaximumSize(QtCore.QSize(16777215, 200)) |
94 | 22130dab | 김정우 | self.bottomWidget.setObjectName("bottomWidget") |
95 | self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.bottomWidget) |
||
96 | self.verticalLayout_4.setContentsMargins(0, 0, 0, 0) |
||
97 | cc106735 | 김정우 | self.verticalLayout_4.setObjectName("verticalLayout_4") |
98 | self.detectResultVerticalLayout_2 = QtWidgets.QVBoxLayout()
|
||
99 | 22130dab | 김정우 | self.detectResultVerticalLayout_2.setContentsMargins(8, 8, 8, 8) |
100 | cc106735 | 김정우 | self.detectResultVerticalLayout_2.setObjectName("detectResultVerticalLayout_2") |
101 | 4821cb74 | humkyung | self.gridLayout_3 = QtWidgets.QGridLayout()
|
102 | self.gridLayout_3.setObjectName("gridLayout_3") |
||
103 | 09841ec5 | esham21 | self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
|
104 | self.horizontalLayout_3.setObjectName("horizontalLayout_3") |
||
105 | 22130dab | 김정우 | self.detectResultLabel_2 = QtWidgets.QLabel(self.bottomWidget) |
106 | 2240f7db | 김정우 | font = QtGui.QFont() |
107 | font.setBold(True)
|
||
108 | font.setWeight(75)
|
||
109 | cc106735 | 김정우 | self.detectResultLabel_2.setFont(font)
|
110 | self.detectResultLabel_2.setObjectName("detectResultLabel_2") |
||
111 | 09841ec5 | esham21 | self.horizontalLayout_3.addWidget(self.detectResultLabel_2) |
112 | d92b873c | esham21 | self.pushButtonCopyHori = QtWidgets.QPushButton(self.bottomWidget) |
113 | 298baf11 | humkyung | icon4 = QtGui.QIcon() |
114 | icon4.addPixmap(QtGui.QPixmap(":/newPrefix/Copy.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||
115 | self.pushButtonCopyHori.setIcon(icon4)
|
||
116 | d92b873c | esham21 | self.pushButtonCopyHori.setObjectName("pushButtonCopyHori") |
117 | self.horizontalLayout_3.addWidget(self.pushButtonCopyHori) |
||
118 | 71e34951 | humkyung | spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
119 | self.horizontalLayout_3.addItem(spacerItem1)
|
||
120 | 09841ec5 | esham21 | self.checkBoxSeperate = QtWidgets.QCheckBox(self.bottomWidget) |
121 | self.checkBoxSeperate.setChecked(True) |
||
122 | self.checkBoxSeperate.setObjectName("checkBoxSeperate") |
||
123 | self.horizontalLayout_3.addWidget(self.checkBoxSeperate) |
||
124 | 4821cb74 | humkyung | 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 | cc106735 | 김정우 | self.verticalLayout_4.addLayout(self.detectResultVerticalLayout_2) |
130 | f9a1bdba | humkyung | self.gridLayout_2.addWidget(self.splitter, 1, 0, 1, 1) |
131 | f6781558 | humkyung | self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
|
132 | self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
||
133 | 1669b150 | esham21 | self.pushButtonMakeTrainingImage = QtWidgets.QPushButton(Dialog)
|
134 | f6781558 | humkyung | 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 | 298baf11 | humkyung | icon5 = QtGui.QIcon() |
140 | icon5.addPixmap(QtGui.QPixmap(":/newPrefix/Save.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||
141 | self.pushButtonMakeTrainingImage.setIcon(icon5)
|
||
142 | 1669b150 | esham21 | self.pushButtonMakeTrainingImage.setObjectName("pushButtonMakeTrainingImage") |
143 | f6781558 | humkyung | 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 | 2240f7db | 김정우 | |
151 | self.retranslateUi(Dialog)
|
||
152 | 22130dab | 김정우 | self.ocrDialogButtonBox.accepted.connect(Dialog.accept)
|
153 | self.ocrDialogButtonBox.rejected.connect(Dialog.reject)
|
||
154 | 2240f7db | 김정우 | QtCore.QMetaObject.connectSlotsByName(Dialog) |
155 | |||
156 | def retranslateUi(self, Dialog): |
||
157 | _translate = QtCore.QCoreApplication.translate |
||
158 | Dialog.setWindowTitle(_translate("Dialog", "OCR")) |
||
159 | 02b1bbcb | humkyung | self.targetTextLabel_2.setText(_translate("Dialog", "Recognition Object")) |
160 | b3bd19f3 | esham21 | self.label.setText(_translate("Dialog", "OCR Source : ")) |
161 | 2c2a141c | humkyung | self.counterClockPushButton_2.setToolTip(_translate("Dialog", "반시계 방향 회전")) |
162 | self.clockPushButton_2.setToolTip(_translate("Dialog", "시계 방향 회전")) |
||
163 | 02b1bbcb | humkyung | self.detectResultLabel_2.setText(_translate("Dialog", "Recognition Result")) |
164 | d92b873c | esham21 | self.pushButtonCopyHori.setText(_translate("Dialog", "Copy")) |
165 | 09841ec5 | esham21 | self.checkBoxSeperate.setText(_translate("Dialog", "Seperate")) |
166 | 02b1bbcb | humkyung | self.pushButtonMakeTrainingImage.setText(_translate("Dialog", "Save OCR Training Image")) |
167 | e5ac172b | humkyung | import MainWindow_rc |