hytos / DTI_PID / DTI_PID / OcrResultDialog_UI.py @ 72edf08b
이력 | 보기 | 이력해설 | 다운로드 (7.9 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.horizontalLayout = QtWidgets.QHBoxLayout()
|
35 |
self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
|
36 |
self.horizontalLayout.setContentsMargins(8, 8, 8, 8) |
37 |
self.horizontalLayout.setObjectName("horizontalLayout") |
38 |
self.targetTextLabel_2 = QtWidgets.QLabel(self.topWidget) |
39 |
self.targetTextLabel_2.setMinimumSize(QtCore.QSize(0, 60)) |
40 |
self.targetTextLabel_2.setMaximumSize(QtCore.QSize(16777215, 60)) |
41 |
font = QtGui.QFont() |
42 |
font.setBold(True)
|
43 |
font.setWeight(75)
|
44 |
self.targetTextLabel_2.setFont(font)
|
45 |
self.targetTextLabel_2.setObjectName("targetTextLabel_2") |
46 |
self.horizontalLayout.addWidget(self.targetTextLabel_2) |
47 |
self.counterClockPushButton_2 = QtWidgets.QPushButton(self.topWidget) |
48 |
self.counterClockPushButton_2.setMinimumSize(QtCore.QSize(0, 60)) |
49 |
self.counterClockPushButton_2.setMaximumSize(QtCore.QSize(60, 60)) |
50 |
self.counterClockPushButton_2.setText("") |
51 |
icon = QtGui.QIcon() |
52 |
icon.addPixmap(QtGui.QPixmap(":/newPrefix/Rotate_Minus.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
53 |
self.counterClockPushButton_2.setIcon(icon)
|
54 |
self.counterClockPushButton_2.setIconSize(QtCore.QSize(32, 32)) |
55 |
self.counterClockPushButton_2.setObjectName("counterClockPushButton_2") |
56 |
self.horizontalLayout.addWidget(self.counterClockPushButton_2) |
57 |
self.clockPushButton_2 = QtWidgets.QPushButton(self.topWidget) |
58 |
self.clockPushButton_2.setMinimumSize(QtCore.QSize(0, 60)) |
59 |
self.clockPushButton_2.setMaximumSize(QtCore.QSize(60, 60)) |
60 |
self.clockPushButton_2.setText("") |
61 |
icon1 = QtGui.QIcon() |
62 |
icon1.addPixmap(QtGui.QPixmap(":/newPrefix/Rotate_Plus.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
63 |
self.clockPushButton_2.setIcon(icon1)
|
64 |
self.clockPushButton_2.setIconSize(QtCore.QSize(32, 32)) |
65 |
self.clockPushButton_2.setObjectName("clockPushButton_2") |
66 |
self.horizontalLayout.addWidget(self.clockPushButton_2) |
67 |
self.redetectPushButton_2 = QtWidgets.QPushButton(self.topWidget) |
68 |
self.redetectPushButton_2.setMinimumSize(QtCore.QSize(0, 60)) |
69 |
self.redetectPushButton_2.setMaximumSize(QtCore.QSize(60, 60)) |
70 |
self.redetectPushButton_2.setText("") |
71 |
icon2 = QtGui.QIcon() |
72 |
icon2.addPixmap(QtGui.QPixmap(":/newPrefix/OCR.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
73 |
self.redetectPushButton_2.setIcon(icon2)
|
74 |
self.redetectPushButton_2.setIconSize(QtCore.QSize(32, 32)) |
75 |
self.redetectPushButton_2.setObjectName("redetectPushButton_2") |
76 |
self.horizontalLayout.addWidget(self.redetectPushButton_2) |
77 |
self.tVerticalLayout_2.addLayout(self.horizontalLayout) |
78 |
self.horizontalLayoutGraphicsView = QtWidgets.QHBoxLayout()
|
79 |
self.horizontalLayoutGraphicsView.setObjectName("horizontalLayoutGraphicsView") |
80 |
self.tVerticalLayout_2.addLayout(self.horizontalLayoutGraphicsView) |
81 |
self.verticalLayout_2.addLayout(self.tVerticalLayout_2) |
82 |
self.bottomWidget = QtWidgets.QWidget(self.splitter) |
83 |
self.bottomWidget.setMinimumSize(QtCore.QSize(0, 150)) |
84 |
self.bottomWidget.setObjectName("bottomWidget") |
85 |
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.bottomWidget) |
86 |
self.verticalLayout_4.setContentsMargins(0, 0, 0, 0) |
87 |
self.verticalLayout_4.setObjectName("verticalLayout_4") |
88 |
self.detectResultVerticalLayout_2 = QtWidgets.QVBoxLayout()
|
89 |
self.detectResultVerticalLayout_2.setContentsMargins(8, 8, 8, 8) |
90 |
self.detectResultVerticalLayout_2.setObjectName("detectResultVerticalLayout_2") |
91 |
self.detectResultLabel_2 = QtWidgets.QLabel(self.bottomWidget) |
92 |
font = QtGui.QFont() |
93 |
font.setBold(True)
|
94 |
font.setWeight(75)
|
95 |
self.detectResultLabel_2.setFont(font)
|
96 |
self.detectResultLabel_2.setObjectName("detectResultLabel_2") |
97 |
self.detectResultVerticalLayout_2.addWidget(self.detectResultLabel_2) |
98 |
self.detectResultTextEdit = QtWidgets.QTextEdit(self.bottomWidget) |
99 |
font = QtGui.QFont() |
100 |
font.setFamily("Consolas")
|
101 |
font.setPointSize(15)
|
102 |
self.detectResultTextEdit.setFont(font)
|
103 |
self.detectResultTextEdit.setObjectName("detectResultTextEdit") |
104 |
self.detectResultVerticalLayout_2.addWidget(self.detectResultTextEdit) |
105 |
self.verticalLayout_4.addLayout(self.detectResultVerticalLayout_2) |
106 |
self.gridLayout_2.addWidget(self.splitter, 1, 0, 1, 1) |
107 |
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
|
108 |
self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
109 |
self.pushButtonMakeTrainingImage = QtWidgets.QPushButton(Dialog)
|
110 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) |
111 |
sizePolicy.setHorizontalStretch(0)
|
112 |
sizePolicy.setVerticalStretch(0)
|
113 |
sizePolicy.setHeightForWidth(self.pushButtonMakeTrainingImage.sizePolicy().hasHeightForWidth())
|
114 |
self.pushButtonMakeTrainingImage.setSizePolicy(sizePolicy)
|
115 |
self.pushButtonMakeTrainingImage.setObjectName("pushButtonMakeTrainingImage") |
116 |
self.horizontalLayout_2.addWidget(self.pushButtonMakeTrainingImage) |
117 |
self.ocrDialogButtonBox = QtWidgets.QDialogButtonBox(Dialog)
|
118 |
self.ocrDialogButtonBox.setOrientation(QtCore.Qt.Horizontal)
|
119 |
self.ocrDialogButtonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
|
120 |
self.ocrDialogButtonBox.setObjectName("ocrDialogButtonBox") |
121 |
self.horizontalLayout_2.addWidget(self.ocrDialogButtonBox) |
122 |
self.gridLayout_2.addLayout(self.horizontalLayout_2, 3, 0, 1, 1) |
123 |
|
124 |
self.retranslateUi(Dialog)
|
125 |
self.ocrDialogButtonBox.accepted.connect(Dialog.accept)
|
126 |
self.ocrDialogButtonBox.rejected.connect(Dialog.reject)
|
127 |
QtCore.QMetaObject.connectSlotsByName(Dialog) |
128 |
|
129 |
def retranslateUi(self, Dialog): |
130 |
_translate = QtCore.QCoreApplication.translate |
131 |
Dialog.setWindowTitle(_translate("Dialog", "OCR")) |
132 |
self.targetTextLabel_2.setText(_translate("Dialog", "Recognition Object")) |
133 |
self.counterClockPushButton_2.setToolTip(_translate("Dialog", "반시계 방향 회전")) |
134 |
self.clockPushButton_2.setToolTip(_translate("Dialog", "시계 방향 회전")) |
135 |
self.detectResultLabel_2.setText(_translate("Dialog", "Recognition Result")) |
136 |
self.pushButtonMakeTrainingImage.setText(_translate("Dialog", "Save OCR Training Image")) |
137 |
|
138 |
import MainWindow_rc |
139 |
|
140 |
if __name__ == "__main__": |
141 |
import sys |
142 |
app = QtWidgets.QApplication(sys.argv) |
143 |
Dialog = QtWidgets.QDialog() |
144 |
ui = Ui_Dialog() |
145 |
ui.setupUi(Dialog) |
146 |
Dialog.show() |
147 |
sys.exit(app.exec_()) |
148 |
|