프로젝트

일반

사용자정보

통계
| 개정판:

hytos / DTI_PID / DTI_PID / OcrResultDialog_UI.py @ e72a2246

이력 | 보기 | 이력해설 | 다운로드 (9.45 KB)

1 2240f7db 김정우
# -*- coding: utf-8 -*-
2
3 d92b873c esham21
# Form implementation generated from reading ui file './UI/OcrResultDialog.ui'
4 2240f7db 김정우
#
5 d92b873c esham21
# Created by: PyQt5 UI code generator 5.11.3
6 2240f7db 김정우
#
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 cc106735 김정우
        Dialog.resize(1080, 650)
15
        Dialog.setMinimumSize(QtCore.QSize(1080, 650))
16 e5ac172b humkyung
        font = QtGui.QFont()
17
        font.setFamily("맑은 고딕")
18
        font.setBold(True)
19
        font.setWeight(75)
20
        Dialog.setFont(font)
21 22130dab 김정우
        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 cc106735 김정우
        self.verticalLayout_2.setObjectName("verticalLayout_2")
32
        self.tVerticalLayout_2 = QtWidgets.QVBoxLayout()
33
        self.tVerticalLayout_2.setObjectName("tVerticalLayout_2")
34 17cbda7d humkyung
        self.gridLayout = QtWidgets.QGridLayout()
35
        self.gridLayout.setObjectName("gridLayout")
36 b3bd19f3 esham21
        self.comboBoxOCRData = QtWidgets.QComboBox(self.topWidget)
37
        self.comboBoxOCRData.setObjectName("comboBoxOCRData")
38 17cbda7d humkyung
        self.gridLayout.addWidget(self.comboBoxOCRData, 0, 3, 1, 1)
39 22130dab 김정우
        self.clockPushButton_2 = QtWidgets.QPushButton(self.topWidget)
40
        self.clockPushButton_2.setMinimumSize(QtCore.QSize(0, 60))
41 e5ac172b humkyung
        self.clockPushButton_2.setMaximumSize(QtCore.QSize(60, 60))
42
        self.clockPushButton_2.setText("")
43 17cbda7d humkyung
        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 e5ac172b humkyung
        self.clockPushButton_2.setIconSize(QtCore.QSize(32, 32))
47 cc106735 김정우
        self.clockPushButton_2.setObjectName("clockPushButton_2")
48 17cbda7d humkyung
        self.gridLayout.addWidget(self.clockPushButton_2, 0, 5, 1, 1)
49 1cfeb071 humkyung
        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 17cbda7d humkyung
        icon1 = QtGui.QIcon()
54
        icon1.addPixmap(QtGui.QPixmap(":/newPrefix/OCR.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
55 1cfeb071 humkyung
        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 17cbda7d humkyung
        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 f9a1bdba humkyung
        self.horizontalLayoutGraphicsView = QtWidgets.QHBoxLayout()
85 71e34951 humkyung
        self.horizontalLayoutGraphicsView.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize)
86 f9a1bdba humkyung
        self.horizontalLayoutGraphicsView.setObjectName("horizontalLayoutGraphicsView")
87
        self.tVerticalLayout_2.addLayout(self.horizontalLayoutGraphicsView)
88 cc106735 김정우
        self.verticalLayout_2.addLayout(self.tVerticalLayout_2)
89 22130dab 김정우
        self.bottomWidget = QtWidgets.QWidget(self.splitter)
90
        self.bottomWidget.setMinimumSize(QtCore.QSize(0, 150))
91 17cbda7d humkyung
        self.bottomWidget.setMaximumSize(QtCore.QSize(16777215, 200))
92 22130dab 김정우
        self.bottomWidget.setObjectName("bottomWidget")
93
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.bottomWidget)
94
        self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
95 cc106735 김정우
        self.verticalLayout_4.setObjectName("verticalLayout_4")
96
        self.detectResultVerticalLayout_2 = QtWidgets.QVBoxLayout()
97 22130dab 김정우
        self.detectResultVerticalLayout_2.setContentsMargins(8, 8, 8, 8)
98 cc106735 김정우
        self.detectResultVerticalLayout_2.setObjectName("detectResultVerticalLayout_2")
99 4821cb74 humkyung
        self.gridLayout_3 = QtWidgets.QGridLayout()
100
        self.gridLayout_3.setObjectName("gridLayout_3")
101 09841ec5 esham21
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
102
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
103 22130dab 김정우
        self.detectResultLabel_2 = QtWidgets.QLabel(self.bottomWidget)
104 2240f7db 김정우
        font = QtGui.QFont()
105
        font.setBold(True)
106
        font.setWeight(75)
107 cc106735 김정우
        self.detectResultLabel_2.setFont(font)
108
        self.detectResultLabel_2.setObjectName("detectResultLabel_2")
109 09841ec5 esham21
        self.horizontalLayout_3.addWidget(self.detectResultLabel_2)
110 d92b873c esham21
        self.pushButtonCopyHori = QtWidgets.QPushButton(self.bottomWidget)
111
        self.pushButtonCopyHori.setObjectName("pushButtonCopyHori")
112
        self.horizontalLayout_3.addWidget(self.pushButtonCopyHori)
113 71e34951 humkyung
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
114
        self.horizontalLayout_3.addItem(spacerItem1)
115 09841ec5 esham21
        self.checkBoxSeperate = QtWidgets.QCheckBox(self.bottomWidget)
116
        self.checkBoxSeperate.setChecked(True)
117
        self.checkBoxSeperate.setObjectName("checkBoxSeperate")
118
        self.horizontalLayout_3.addWidget(self.checkBoxSeperate)
119 4821cb74 humkyung
        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 cc106735 김정우
        self.verticalLayout_4.addLayout(self.detectResultVerticalLayout_2)
125 f9a1bdba humkyung
        self.gridLayout_2.addWidget(self.splitter, 1, 0, 1, 1)
126 f6781558 humkyung
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
127
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
128 1669b150 esham21
        self.pushButtonMakeTrainingImage = QtWidgets.QPushButton(Dialog)
129 f6781558 humkyung
        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 1669b150 esham21
        self.pushButtonMakeTrainingImage.setObjectName("pushButtonMakeTrainingImage")
135 f6781558 humkyung
        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 2240f7db 김정우
143
        self.retranslateUi(Dialog)
144 22130dab 김정우
        self.ocrDialogButtonBox.accepted.connect(Dialog.accept)
145
        self.ocrDialogButtonBox.rejected.connect(Dialog.reject)
146 2240f7db 김정우
        QtCore.QMetaObject.connectSlotsByName(Dialog)
147
148
    def retranslateUi(self, Dialog):
149
        _translate = QtCore.QCoreApplication.translate
150
        Dialog.setWindowTitle(_translate("Dialog", "OCR"))
151 17cbda7d humkyung
        self.clockPushButton_2.setToolTip(_translate("Dialog", "시계 방향 회전"))
152
        self.counterClockPushButton_2.setToolTip(_translate("Dialog", "반시계 방향 회전"))
153 02b1bbcb humkyung
        self.targetTextLabel_2.setText(_translate("Dialog", "Recognition Object"))
154 b3bd19f3 esham21
        self.label.setText(_translate("Dialog", "OCR Source : "))
155 02b1bbcb humkyung
        self.detectResultLabel_2.setText(_translate("Dialog", "Recognition Result"))
156 d92b873c esham21
        self.pushButtonCopyHori.setText(_translate("Dialog", "Copy"))
157 09841ec5 esham21
        self.checkBoxSeperate.setText(_translate("Dialog", "Seperate"))
158 02b1bbcb humkyung
        self.pushButtonMakeTrainingImage.setText(_translate("Dialog", "Save OCR Training Image"))
159 d92b873c esham21
160 e5ac172b humkyung
import MainWindow_rc
161 d92b873c esham21
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_())
클립보드 이미지 추가 (최대 크기: 500 MB)