프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

hytos / DTI_PID / DTI_PID / OcrResultDialog_UI.py @ 71e34951

이력 | 보기 | 이력해설 | 다운로드 (8.99 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.0
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
        self.gridLayout_2 = QtWidgets.QGridLayout(Dialog)
24
        self.gridLayout_2.setObjectName("gridLayout_2")
25
        self.splitter = QtWidgets.QSplitter(Dialog)
26
        self.splitter.setOrientation(QtCore.Qt.Vertical)
27
        self.splitter.setObjectName("splitter")
28
        self.topWidget = QtWidgets.QWidget(self.splitter)
29
        self.topWidget.setMinimumSize(QtCore.QSize(0, 150))
30
        self.topWidget.setObjectName("topWidget")
31
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.topWidget)
32
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
33
        self.verticalLayout_2.setObjectName("verticalLayout_2")
34
        self.tVerticalLayout_2 = QtWidgets.QVBoxLayout()
35
        self.tVerticalLayout_2.setObjectName("tVerticalLayout_2")
36
        self.gridLayout = QtWidgets.QGridLayout()
37
        self.gridLayout.setObjectName("gridLayout")
38
        self.comboBoxOCRData = QtWidgets.QComboBox(self.topWidget)
39
        self.comboBoxOCRData.setObjectName("comboBoxOCRData")
40
        self.gridLayout.addWidget(self.comboBoxOCRData, 0, 3, 1, 1)
41
        self.clockPushButton_2 = QtWidgets.QPushButton(self.topWidget)
42
        self.clockPushButton_2.setMinimumSize(QtCore.QSize(0, 60))
43
        self.clockPushButton_2.setMaximumSize(QtCore.QSize(60, 60))
44
        self.clockPushButton_2.setText("")
45
        icon = QtGui.QIcon()
46
        icon.addPixmap(QtGui.QPixmap(":/newPrefix/Rotate_Plus.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
47
        self.clockPushButton_2.setIcon(icon)
48
        self.clockPushButton_2.setIconSize(QtCore.QSize(32, 32))
49
        self.clockPushButton_2.setObjectName("clockPushButton_2")
50
        self.gridLayout.addWidget(self.clockPushButton_2, 0, 5, 1, 1)
51
        self.redetectPushButton_2 = QtWidgets.QPushButton(self.topWidget)
52
        self.redetectPushButton_2.setMinimumSize(QtCore.QSize(0, 60))
53
        self.redetectPushButton_2.setMaximumSize(QtCore.QSize(60, 60))
54
        self.redetectPushButton_2.setText("")
55
        icon1 = QtGui.QIcon()
56
        icon1.addPixmap(QtGui.QPixmap(":/newPrefix/OCR.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
57
        self.redetectPushButton_2.setIcon(icon1)
58
        self.redetectPushButton_2.setIconSize(QtCore.QSize(32, 32))
59
        self.redetectPushButton_2.setObjectName("redetectPushButton_2")
60
        self.gridLayout.addWidget(self.redetectPushButton_2, 0, 6, 1, 1)
61
        self.counterClockPushButton_2 = QtWidgets.QPushButton(self.topWidget)
62
        self.counterClockPushButton_2.setMinimumSize(QtCore.QSize(0, 60))
63
        self.counterClockPushButton_2.setMaximumSize(QtCore.QSize(60, 60))
64
        self.counterClockPushButton_2.setText("")
65
        icon2 = QtGui.QIcon()
66
        icon2.addPixmap(QtGui.QPixmap(":/newPrefix/Rotate_Minus.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
67
        self.counterClockPushButton_2.setIcon(icon2)
68
        self.counterClockPushButton_2.setIconSize(QtCore.QSize(32, 32))
69
        self.counterClockPushButton_2.setObjectName("counterClockPushButton_2")
70
        self.gridLayout.addWidget(self.counterClockPushButton_2, 0, 4, 1, 1)
71
        self.targetTextLabel_2 = QtWidgets.QLabel(self.topWidget)
72
        self.targetTextLabel_2.setMinimumSize(QtCore.QSize(0, 60))
73
        self.targetTextLabel_2.setMaximumSize(QtCore.QSize(16777215, 60))
74
        font = QtGui.QFont()
75
        font.setBold(True)
76
        font.setWeight(75)
77
        self.targetTextLabel_2.setFont(font)
78
        self.targetTextLabel_2.setObjectName("targetTextLabel_2")
79
        self.gridLayout.addWidget(self.targetTextLabel_2, 0, 0, 1, 1)
80
        self.label = QtWidgets.QLabel(self.topWidget)
81
        self.label.setObjectName("label")
82
        self.gridLayout.addWidget(self.label, 0, 2, 1, 1)
83
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
84
        self.gridLayout.addItem(spacerItem, 0, 1, 1, 1)
85
        self.tVerticalLayout_2.addLayout(self.gridLayout)
86
        self.horizontalLayoutGraphicsView = QtWidgets.QHBoxLayout()
87
        self.horizontalLayoutGraphicsView.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize)
88
        self.horizontalLayoutGraphicsView.setObjectName("horizontalLayoutGraphicsView")
89
        self.tVerticalLayout_2.addLayout(self.horizontalLayoutGraphicsView)
90
        self.verticalLayout_2.addLayout(self.tVerticalLayout_2)
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
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
113
        self.horizontalLayout_3.addItem(spacerItem1)
114
        self.checkBoxSeperate = QtWidgets.QCheckBox(self.bottomWidget)
115
        self.checkBoxSeperate.setChecked(True)
116
        self.checkBoxSeperate.setObjectName("checkBoxSeperate")
117
        self.horizontalLayout_3.addWidget(self.checkBoxSeperate)
118
        self.gridLayout_3.addLayout(self.horizontalLayout_3, 0, 0, 1, 1)
119
        self.horizontalLayoutTextEdit = QtWidgets.QHBoxLayout()
120
        self.horizontalLayoutTextEdit.setObjectName("horizontalLayoutTextEdit")
121
        self.gridLayout_3.addLayout(self.horizontalLayoutTextEdit, 1, 0, 1, 1)
122
        self.detectResultVerticalLayout_2.addLayout(self.gridLayout_3)
123
        self.verticalLayout_4.addLayout(self.detectResultVerticalLayout_2)
124
        self.gridLayout_2.addWidget(self.splitter, 1, 0, 1, 1)
125
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
126
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
127
        self.pushButtonMakeTrainingImage = QtWidgets.QPushButton(Dialog)
128
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
129
        sizePolicy.setHorizontalStretch(0)
130
        sizePolicy.setVerticalStretch(0)
131
        sizePolicy.setHeightForWidth(self.pushButtonMakeTrainingImage.sizePolicy().hasHeightForWidth())
132
        self.pushButtonMakeTrainingImage.setSizePolicy(sizePolicy)
133
        self.pushButtonMakeTrainingImage.setObjectName("pushButtonMakeTrainingImage")
134
        self.horizontalLayout_2.addWidget(self.pushButtonMakeTrainingImage)
135
        self.ocrDialogButtonBox = QtWidgets.QDialogButtonBox(Dialog)
136
        self.ocrDialogButtonBox.setOrientation(QtCore.Qt.Horizontal)
137
        self.ocrDialogButtonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
138
        self.ocrDialogButtonBox.setObjectName("ocrDialogButtonBox")
139
        self.horizontalLayout_2.addWidget(self.ocrDialogButtonBox)
140
        self.gridLayout_2.addLayout(self.horizontalLayout_2, 3, 0, 1, 1)
141

    
142
        self.retranslateUi(Dialog)
143
        self.ocrDialogButtonBox.accepted.connect(Dialog.accept)
144
        self.ocrDialogButtonBox.rejected.connect(Dialog.reject)
145
        QtCore.QMetaObject.connectSlotsByName(Dialog)
146

    
147
    def retranslateUi(self, Dialog):
148
        _translate = QtCore.QCoreApplication.translate
149
        Dialog.setWindowTitle(_translate("Dialog", "OCR"))
150
        self.clockPushButton_2.setToolTip(_translate("Dialog", "시계 방향 회전"))
151
        self.counterClockPushButton_2.setToolTip(_translate("Dialog", "반시계 방향 회전"))
152
        self.targetTextLabel_2.setText(_translate("Dialog", "Recognition Object"))
153
        self.label.setText(_translate("Dialog", "OCR Source : "))
154
        self.detectResultLabel_2.setText(_translate("Dialog", "Recognition Result"))
155
        self.checkBoxSeperate.setText(_translate("Dialog", "Seperate"))
156
        self.pushButtonMakeTrainingImage.setText(_translate("Dialog", "Save OCR Training Image"))
157
import MainWindow_rc
클립보드 이미지 추가 (최대 크기: 500 MB)