개정판 cc106735
OcrResultDialog ButtonBox 위치가 잘못나오는 문제 수정 중
DTI_PID/DTI_PID/QOcrResultDialog.py | ||
---|---|---|
24 | 24 |
self.ui = UI_OcrResultDialog.Ui_Dialog() |
25 | 25 |
self.ui.setupUi(self) |
26 | 26 |
|
27 |
widgetWidth = self.ui.verticalLayoutWidget_2.frameGeometry().width() |
|
28 |
widgetHeight = self.ui.verticalLayoutWidget_2.frameGeometry().height() |
|
29 | 27 |
self.imgW = qimage.width() |
30 | 28 |
self.imgH = qimage.height() |
31 | 29 |
self.image = self.image.scaled(self.imgW, self.imgH) |
32 | 30 |
self.graphicsView = QtImageViewer.QtImageViewer() |
33 |
self.graphicsView.setParent(self.ui.verticalLayoutWidget_2)
|
|
31 |
#self.graphicsView.setParent(self.ui.gridLayoutWidget_2)
|
|
34 | 32 |
self.graphicsView.useDefaultCommand() ##### USE DEFAULT COMMAND |
35 | 33 |
self.graphicsView.setImage(self.image) |
36 |
self.ui.targetVerticalLayout.addWidget(self.graphicsView) |
|
34 |
self.ui.tVerticalLayout_2.addWidget(self.graphicsView) |
|
35 |
|
|
36 |
splitter = QSplitter(Qt.Vertical) |
|
37 |
splitter.addWidget(self.ui.topFrame) |
|
38 |
splitter.addWidget(self.ui.bottomFrame) |
|
39 |
self.ui.gridLayout.addWidget(splitter) |
|
37 | 40 |
|
38 |
self.ui.counterClockPushButton.clicked.connect(lambda : self.rotateImage(True)) |
|
39 |
self.ui.clockPushButton.clicked.connect(lambda : self.rotateImage(False)) |
|
40 |
self.ui.redetectPushButton.clicked.connect(self.detectText) |
|
41 |
self.ui.counterClockPushButton_2.clicked.connect(lambda : self.rotateImage(True))
|
|
42 |
self.ui.clockPushButton_2.clicked.connect(lambda : self.rotateImage(False))
|
|
43 |
self.ui.redetectPushButton_2.clicked.connect(self.detectText)
|
|
41 | 44 |
|
42 | 45 |
self.detectText() |
43 | 46 |
|
... | ... | |
67 | 70 |
pyImage = Image.open(io.BytesIO(buffer.data())) |
68 | 71 |
self.textInfoList = TOCR.getTextInfo(np.array(pyImage), (self.boundingBox.left(), self.boundingBox.top())) |
69 | 72 |
if self.textInfoList is not None and len(self.textInfoList) > 0: |
70 |
self.ui.detectResultTextEdit.setText(self.getPlainText(self.textInfoList)) |
|
73 |
self.ui.detectResultTextEdit_2.setText(self.getPlainText(self.textInfoList))
|
|
71 | 74 |
for textInfo in self.textInfoList: |
72 | 75 |
self.graphicsView.scene.addRect(textInfo.getX(), textInfo.getY(), textInfo.getW(), textInfo.getH(), QPen(Qt.red, 2, Qt.SolidLine)) |
73 | 76 |
else: |
74 |
self.ui.detectResultTextEdit.setText("Not Found") |
|
77 |
self.ui.detectResultTextEdit_2.setText("Not Found")
|
|
75 | 78 |
|
76 | 79 |
def getPlainText(self, textInfoList): |
77 | 80 |
text = '' |
... | ... | |
90 | 93 |
''' |
91 | 94 |
def accept(self): |
92 | 95 |
self.isAccepted = True |
93 |
text = self.ui.detectResultTextEdit.toPlainText() |
|
96 |
text = self.ui.detectResultTextEdit_2.toPlainText()
|
|
94 | 97 |
splitText = text.split('\n') |
95 | 98 |
if self.textInfoList is not None and len(self.textInfoList) > 0: |
96 | 99 |
for index in range(len(splitText)): |
DTI_PID/DTI_PID/UI/OcrResultDialog.ui | ||
---|---|---|
6 | 6 |
<rect> |
7 | 7 |
<x>0</x> |
8 | 8 |
<y>0</y> |
9 |
<width>800</width>
|
|
10 |
<height>400</height>
|
|
9 |
<width>1080</width>
|
|
10 |
<height>650</height>
|
|
11 | 11 |
</rect> |
12 | 12 |
</property> |
13 |
<property name="minimumSize"> |
|
14 |
<size> |
|
15 |
<width>1080</width> |
|
16 |
<height>650</height> |
|
17 |
</size> |
|
18 |
</property> |
|
13 | 19 |
<property name="windowTitle"> |
14 | 20 |
<string>OCR</string> |
15 | 21 |
</property> |
16 |
<widget class="QDialogButtonBox" name="ocrDialogButtonBox"> |
|
17 |
<property name="geometry"> |
|
18 |
<rect> |
|
19 |
<x>450</x> |
|
20 |
<y>370</y> |
|
21 |
<width>341</width> |
|
22 |
<height>32</height> |
|
23 |
</rect> |
|
24 |
</property> |
|
25 |
<property name="orientation"> |
|
26 |
<enum>Qt::Horizontal</enum> |
|
27 |
</property> |
|
28 |
<property name="standardButtons"> |
|
29 |
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> |
|
30 |
</property> |
|
31 |
</widget> |
|
32 |
<widget class="QWidget" name="gridLayoutWidget"> |
|
33 |
<property name="geometry"> |
|
34 |
<rect> |
|
35 |
<x>10</x> |
|
36 |
<y>10</y> |
|
37 |
<width>781</width> |
|
38 |
<height>351</height> |
|
39 |
</rect> |
|
40 |
</property> |
|
41 |
<layout class="QGridLayout" name="gridLayout"> |
|
42 |
<item row="1" column="0"> |
|
43 |
<widget class="QWidget" name="widget_2" native="true"> |
|
44 |
<widget class="QWidget" name="verticalLayoutWidget"> |
|
45 |
<property name="geometry"> |
|
46 |
<rect> |
|
47 |
<x>10</x> |
|
48 |
<y>10</y> |
|
49 |
<width>761</width> |
|
50 |
<height>151</height> |
|
51 |
</rect> |
|
52 |
</property> |
|
53 |
<layout class="QVBoxLayout" name="detectResultVerticalLayout"> |
|
22 |
<layout class="QGridLayout" name="gridLayout"> |
|
23 |
<item row="2" column="0"> |
|
24 |
<widget class="QDialogButtonBox" name="ocrDialogButtonBox"> |
|
25 |
<property name="orientation"> |
|
26 |
<enum>Qt::Horizontal</enum> |
|
27 |
</property> |
|
28 |
<property name="standardButtons"> |
|
29 |
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> |
|
30 |
</property> |
|
31 |
</widget> |
|
32 |
</item> |
|
33 |
<item row="1" column="0"> |
|
34 |
<widget class="QWidget" name="bottomWidget" native="true"> |
|
35 |
<property name="minimumSize"> |
|
36 |
<size> |
|
37 |
<width>0</width> |
|
38 |
<height>100</height> |
|
39 |
</size> |
|
40 |
</property> |
|
41 |
<layout class="QVBoxLayout" name="verticalLayout_4"> |
|
42 |
<item> |
|
43 |
<layout class="QVBoxLayout" name="detectResultVerticalLayout_2"> |
|
54 | 44 |
<item> |
55 |
<widget class="QLabel" name="detectResultLabel"> |
|
45 |
<widget class="QLabel" name="detectResultLabel_2">
|
|
56 | 46 |
<property name="font"> |
57 | 47 |
<font> |
58 | 48 |
<weight>75</weight> |
... | ... | |
65 | 55 |
</widget> |
66 | 56 |
</item> |
67 | 57 |
<item> |
68 |
<widget class="QTextEdit" name="detectResultTextEdit"/> |
|
58 |
<widget class="QTextEdit" name="detectResultTextEdit_2"/>
|
|
69 | 59 |
</item> |
70 | 60 |
</layout> |
71 |
</widget>
|
|
72 |
</widget>
|
|
73 |
</item>
|
|
74 |
<item row="0" column="0">
|
|
75 |
<widget class="QWidget" name="widget" native="true">
|
|
76 |
<widget class="QWidget" name="verticalLayoutWidget_2">
|
|
77 |
<property name="geometry">
|
|
78 |
<rect>
|
|
79 |
<x>0</x>
|
|
80 |
<y>0</y>
|
|
81 |
<width>781</width>
|
|
82 |
<height>171</height>
|
|
83 |
</rect>
|
|
84 |
</property>
|
|
85 |
<layout class="QVBoxLayout" name="tVerticalLayout"> |
|
61 |
</item>
|
|
62 |
</layout>
|
|
63 |
</widget>
|
|
64 |
</item>
|
|
65 |
<item row="0" column="0">
|
|
66 |
<widget class="QWidget" name="topWidget" native="true">
|
|
67 |
<property name="minimumSize">
|
|
68 |
<size>
|
|
69 |
<width>0</width>
|
|
70 |
<height>100</height>
|
|
71 |
</size>
|
|
72 |
</property>
|
|
73 |
<layout class="QVBoxLayout" name="verticalLayout_2">
|
|
74 |
<item>
|
|
75 |
<layout class="QVBoxLayout" name="tVerticalLayout_2">
|
|
86 | 76 |
<item> |
87 |
<widget class="QWidget" name="targetToolsWidget" native="true"> |
|
88 |
<widget class="QWidget" name="gridLayoutWidget_2"> |
|
89 |
<property name="geometry"> |
|
90 |
<rect> |
|
91 |
<x>10</x> |
|
92 |
<y>10</y> |
|
93 |
<width>761</width> |
|
94 |
<height>25</height> |
|
95 |
</rect> |
|
96 |
</property> |
|
97 |
<layout class="QGridLayout" name="gridLayout_2"> |
|
98 |
<item row="0" column="2"> |
|
99 |
<widget class="QPushButton" name="clockPushButton"> |
|
100 |
<property name="text"> |
|
101 |
<string>Clock</string> |
|
102 |
</property> |
|
103 |
</widget> |
|
104 |
</item> |
|
105 |
<item row="0" column="1"> |
|
106 |
<widget class="QPushButton" name="counterClockPushButton"> |
|
107 |
<property name="text"> |
|
108 |
<string>CounterClock</string> |
|
109 |
</property> |
|
110 |
</widget> |
|
111 |
</item> |
|
112 |
<item row="0" column="3"> |
|
113 |
<widget class="QPushButton" name="redetectPushButton"> |
|
114 |
<property name="text"> |
|
115 |
<string>Re-Detect</string> |
|
116 |
</property> |
|
117 |
</widget> |
|
118 |
</item> |
|
119 |
<item row="0" column="0"> |
|
120 |
<widget class="QLabel" name="targetTextLabel"> |
|
121 |
<property name="font"> |
|
122 |
<font> |
|
123 |
<weight>75</weight> |
|
124 |
<bold>true</bold> |
|
125 |
</font> |
|
126 |
</property> |
|
127 |
<property name="text"> |
|
128 |
<string>검출 대상</string> |
|
129 |
</property> |
|
130 |
</widget> |
|
131 |
</item> |
|
132 |
</layout> |
|
133 |
</widget> |
|
134 |
<widget class="QWidget" name="widget_3" native="true"> |
|
135 |
<property name="geometry"> |
|
136 |
<rect> |
|
137 |
<x>10</x> |
|
138 |
<y>40</y> |
|
139 |
<width>761</width> |
|
140 |
<height>121</height> |
|
141 |
</rect> |
|
142 |
</property> |
|
143 |
<widget class="QWidget" name="verticalLayoutWidget_3"> |
|
144 |
<property name="geometry"> |
|
145 |
<rect> |
|
146 |
<x>0</x> |
|
147 |
<y>0</y> |
|
148 |
<width>761</width> |
|
149 |
<height>121</height> |
|
150 |
</rect> |
|
151 |
</property> |
|
152 |
<layout class="QVBoxLayout" name="targetVerticalLayout"/> |
|
153 |
</widget> |
|
154 |
</widget> |
|
77 |
<widget class="QWidget" name="targetToolsWidget_2" native="true"> |
|
78 |
<layout class="QVBoxLayout" name="verticalLayout"> |
|
79 |
<item> |
|
80 |
<layout class="QHBoxLayout" name="horizontalLayout"> |
|
81 |
<item> |
|
82 |
<widget class="QLabel" name="targetTextLabel_2"> |
|
83 |
<property name="font"> |
|
84 |
<font> |
|
85 |
<weight>75</weight> |
|
86 |
<bold>true</bold> |
|
87 |
</font> |
|
88 |
</property> |
|
89 |
<property name="text"> |
|
90 |
<string>검출 대상</string> |
|
91 |
</property> |
|
92 |
</widget> |
|
93 |
</item> |
|
94 |
<item> |
|
95 |
<widget class="QPushButton" name="counterClockPushButton_2"> |
|
96 |
<property name="minimumSize"> |
|
97 |
<size> |
|
98 |
<width>0</width> |
|
99 |
<height>40</height> |
|
100 |
</size> |
|
101 |
</property> |
|
102 |
<property name="maximumSize"> |
|
103 |
<size> |
|
104 |
<width>150</width> |
|
105 |
<height>40</height> |
|
106 |
</size> |
|
107 |
</property> |
|
108 |
<property name="text"> |
|
109 |
<string>CounterClock</string> |
|
110 |
</property> |
|
111 |
</widget> |
|
112 |
</item> |
|
113 |
<item> |
|
114 |
<widget class="QPushButton" name="clockPushButton_2"> |
|
115 |
<property name="minimumSize"> |
|
116 |
<size> |
|
117 |
<width>0</width> |
|
118 |
<height>40</height> |
|
119 |
</size> |
|
120 |
</property> |
|
121 |
<property name="maximumSize"> |
|
122 |
<size> |
|
123 |
<width>150</width> |
|
124 |
<height>40</height> |
|
125 |
</size> |
|
126 |
</property> |
|
127 |
<property name="text"> |
|
128 |
<string>Clock</string> |
|
129 |
</property> |
|
130 |
</widget> |
|
131 |
</item> |
|
132 |
<item> |
|
133 |
<widget class="QPushButton" name="redetectPushButton_2"> |
|
134 |
<property name="minimumSize"> |
|
135 |
<size> |
|
136 |
<width>0</width> |
|
137 |
<height>40</height> |
|
138 |
</size> |
|
139 |
</property> |
|
140 |
<property name="maximumSize"> |
|
141 |
<size> |
|
142 |
<width>150</width> |
|
143 |
<height>40</height> |
|
144 |
</size> |
|
145 |
</property> |
|
146 |
<property name="text"> |
|
147 |
<string>Re-Detect</string> |
|
148 |
</property> |
|
149 |
</widget> |
|
150 |
</item> |
|
151 |
</layout> |
|
152 |
</item> |
|
153 |
</layout> |
|
155 | 154 |
</widget> |
156 | 155 |
</item> |
157 | 156 |
</layout> |
158 |
</widget>
|
|
159 |
</widget>
|
|
160 |
</item>
|
|
161 |
</layout>
|
|
162 |
</widget>
|
|
157 |
</item>
|
|
158 |
</layout>
|
|
159 |
</widget>
|
|
160 |
</item>
|
|
161 |
</layout>
|
|
163 | 162 |
</widget> |
164 | 163 |
<resources/> |
165 |
<connections> |
|
166 |
<connection> |
|
167 |
<sender>ocrDialogButtonBox</sender> |
|
168 |
<signal>accepted()</signal> |
|
169 |
<receiver>Dialog</receiver> |
|
170 |
<slot>accept()</slot> |
|
171 |
<hints> |
|
172 |
<hint type="sourcelabel"> |
|
173 |
<x>248</x> |
|
174 |
<y>254</y> |
|
175 |
</hint> |
|
176 |
<hint type="destinationlabel"> |
|
177 |
<x>157</x> |
|
178 |
<y>274</y> |
|
179 |
</hint> |
|
180 |
</hints> |
|
181 |
</connection> |
|
182 |
<connection> |
|
183 |
<sender>ocrDialogButtonBox</sender> |
|
184 |
<signal>rejected()</signal> |
|
185 |
<receiver>Dialog</receiver> |
|
186 |
<slot>reject()</slot> |
|
187 |
<hints> |
|
188 |
<hint type="sourcelabel"> |
|
189 |
<x>316</x> |
|
190 |
<y>260</y> |
|
191 |
</hint> |
|
192 |
<hint type="destinationlabel"> |
|
193 |
<x>286</x> |
|
194 |
<y>274</y> |
|
195 |
</hint> |
|
196 |
</hints> |
|
197 |
</connection> |
|
198 |
</connections> |
|
164 |
<connections/> |
|
199 | 165 |
</ui> |
DTI_PID/DTI_PID/UI_OcrResultDialog.py | ||
---|---|---|
11 | 11 |
class Ui_Dialog(object): |
12 | 12 |
def setupUi(self, Dialog): |
13 | 13 |
Dialog.setObjectName("Dialog") |
14 |
Dialog.resize(800, 400) |
|
14 |
Dialog.resize(1080, 650) |
|
15 |
Dialog.setMinimumSize(QtCore.QSize(1080, 650)) |
|
16 |
self.gridLayout = QtWidgets.QGridLayout(Dialog) |
|
17 |
self.gridLayout.setObjectName("gridLayout") |
|
15 | 18 |
self.ocrDialogButtonBox = QtWidgets.QDialogButtonBox(Dialog) |
16 |
self.ocrDialogButtonBox.setGeometry(QtCore.QRect(450, 370, 341, 32)) |
|
17 | 19 |
self.ocrDialogButtonBox.setOrientation(QtCore.Qt.Horizontal) |
18 | 20 |
self.ocrDialogButtonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) |
19 | 21 |
self.ocrDialogButtonBox.setObjectName("ocrDialogButtonBox") |
20 |
self.gridLayoutWidget = QtWidgets.QWidget(Dialog) |
|
21 |
self.gridLayoutWidget.setGeometry(QtCore.QRect(10, 10, 781, 351)) |
|
22 |
self.gridLayoutWidget.setObjectName("gridLayoutWidget") |
|
23 |
self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget) |
|
24 |
self.gridLayout.setContentsMargins(0, 0, 0, 0) |
|
25 |
self.gridLayout.setObjectName("gridLayout") |
|
26 |
self.widget_2 = QtWidgets.QWidget(self.gridLayoutWidget) |
|
27 |
self.widget_2.setObjectName("widget_2") |
|
28 |
self.verticalLayoutWidget = QtWidgets.QWidget(self.widget_2) |
|
29 |
self.verticalLayoutWidget.setGeometry(QtCore.QRect(10, 10, 761, 151)) |
|
30 |
self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") |
|
31 |
self.detectResultVerticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) |
|
32 |
self.detectResultVerticalLayout.setContentsMargins(0, 0, 0, 0) |
|
33 |
self.detectResultVerticalLayout.setObjectName("detectResultVerticalLayout") |
|
34 |
self.detectResultLabel = QtWidgets.QLabel(self.verticalLayoutWidget) |
|
22 |
self.gridLayout.addWidget(self.ocrDialogButtonBox, 2, 0, 1, 1) |
|
23 |
self.topFrame = QtWidgets.QFrame(Dialog) |
|
24 |
self.topFrame.setMinimumSize(QtCore.QSize(0, 100)) |
|
25 |
self.topFrame.setObjectName("topFrame") |
|
26 |
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.topFrame) |
|
27 |
self.verticalLayout_2.setObjectName("verticalLayout_2") |
|
28 |
self.tVerticalLayout_2 = QtWidgets.QVBoxLayout() |
|
29 |
self.tVerticalLayout_2.setObjectName("tVerticalLayout_2") |
|
30 |
self.targetToolsWidget_2 = QtWidgets.QWidget(self.topFrame) |
|
31 |
self.targetToolsWidget_2.setObjectName("targetToolsWidget_2") |
|
32 |
self.verticalLayout = QtWidgets.QVBoxLayout(self.targetToolsWidget_2) |
|
33 |
self.verticalLayout.setContentsMargins(0, 0, 0, 0) |
|
34 |
self.verticalLayout.setObjectName("verticalLayout") |
|
35 |
self.horizontalLayout = QtWidgets.QHBoxLayout() |
|
36 |
self.horizontalLayout.setObjectName("horizontalLayout") |
|
37 |
self.targetTextLabel_2 = QtWidgets.QLabel(self.targetToolsWidget_2) |
|
35 | 38 |
font = QtGui.QFont() |
36 | 39 |
font.setBold(True) |
37 | 40 |
font.setWeight(75) |
38 |
self.detectResultLabel.setFont(font) |
|
39 |
self.detectResultLabel.setObjectName("detectResultLabel") |
|
40 |
self.detectResultVerticalLayout.addWidget(self.detectResultLabel) |
|
41 |
self.detectResultTextEdit = QtWidgets.QTextEdit(self.verticalLayoutWidget) |
|
42 |
self.detectResultTextEdit.setObjectName("detectResultTextEdit") |
|
43 |
self.detectResultVerticalLayout.addWidget(self.detectResultTextEdit) |
|
44 |
self.gridLayout.addWidget(self.widget_2, 1, 0, 1, 1) |
|
45 |
self.widget = QtWidgets.QWidget(self.gridLayoutWidget) |
|
46 |
self.widget.setObjectName("widget") |
|
47 |
self.verticalLayoutWidget_2 = QtWidgets.QWidget(self.widget) |
|
48 |
self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(0, 0, 781, 171)) |
|
49 |
self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2") |
|
50 |
self.tVerticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_2) |
|
51 |
self.tVerticalLayout.setContentsMargins(0, 0, 0, 0) |
|
52 |
self.tVerticalLayout.setObjectName("tVerticalLayout") |
|
53 |
self.targetToolsWidget = QtWidgets.QWidget(self.verticalLayoutWidget_2) |
|
54 |
self.targetToolsWidget.setObjectName("targetToolsWidget") |
|
55 |
self.gridLayoutWidget_2 = QtWidgets.QWidget(self.targetToolsWidget) |
|
56 |
self.gridLayoutWidget_2.setGeometry(QtCore.QRect(10, 10, 761, 25)) |
|
57 |
self.gridLayoutWidget_2.setObjectName("gridLayoutWidget_2") |
|
58 |
self.gridLayout_2 = QtWidgets.QGridLayout(self.gridLayoutWidget_2) |
|
59 |
self.gridLayout_2.setContentsMargins(0, 0, 0, 0) |
|
60 |
self.gridLayout_2.setObjectName("gridLayout_2") |
|
61 |
self.clockPushButton = QtWidgets.QPushButton(self.gridLayoutWidget_2) |
|
62 |
self.clockPushButton.setObjectName("clockPushButton") |
|
63 |
self.gridLayout_2.addWidget(self.clockPushButton, 0, 2, 1, 1) |
|
64 |
self.counterClockPushButton = QtWidgets.QPushButton(self.gridLayoutWidget_2) |
|
65 |
self.counterClockPushButton.setObjectName("counterClockPushButton") |
|
66 |
self.gridLayout_2.addWidget(self.counterClockPushButton, 0, 1, 1, 1) |
|
67 |
self.redetectPushButton = QtWidgets.QPushButton(self.gridLayoutWidget_2) |
|
68 |
self.redetectPushButton.setObjectName("redetectPushButton") |
|
69 |
self.gridLayout_2.addWidget(self.redetectPushButton, 0, 3, 1, 1) |
|
70 |
self.targetTextLabel = QtWidgets.QLabel(self.gridLayoutWidget_2) |
|
41 |
self.targetTextLabel_2.setFont(font) |
|
42 |
self.targetTextLabel_2.setObjectName("targetTextLabel_2") |
|
43 |
self.horizontalLayout.addWidget(self.targetTextLabel_2) |
|
44 |
self.counterClockPushButton_2 = QtWidgets.QPushButton(self.targetToolsWidget_2) |
|
45 |
self.counterClockPushButton_2.setMinimumSize(QtCore.QSize(0, 40)) |
|
46 |
self.counterClockPushButton_2.setMaximumSize(QtCore.QSize(150, 40)) |
|
47 |
self.counterClockPushButton_2.setObjectName("counterClockPushButton_2") |
|
48 |
self.horizontalLayout.addWidget(self.counterClockPushButton_2) |
|
49 |
self.clockPushButton_2 = QtWidgets.QPushButton(self.targetToolsWidget_2) |
|
50 |
self.clockPushButton_2.setMinimumSize(QtCore.QSize(0, 40)) |
|
51 |
self.clockPushButton_2.setMaximumSize(QtCore.QSize(150, 40)) |
|
52 |
self.clockPushButton_2.setObjectName("clockPushButton_2") |
|
53 |
self.horizontalLayout.addWidget(self.clockPushButton_2) |
|
54 |
self.redetectPushButton_2 = QtWidgets.QPushButton(self.targetToolsWidget_2) |
|
55 |
self.redetectPushButton_2.setMinimumSize(QtCore.QSize(0, 40)) |
|
56 |
self.redetectPushButton_2.setMaximumSize(QtCore.QSize(150, 40)) |
|
57 |
self.redetectPushButton_2.setObjectName("redetectPushButton_2") |
|
58 |
self.horizontalLayout.addWidget(self.redetectPushButton_2) |
|
59 |
self.verticalLayout.addLayout(self.horizontalLayout) |
|
60 |
self.tVerticalLayout_2.addWidget(self.targetToolsWidget_2) |
|
61 |
self.verticalLayout_2.addLayout(self.tVerticalLayout_2) |
|
62 |
self.gridLayout.addWidget(self.topFrame, 0, 0, 1, 1) |
|
63 |
self.bottomFrame = QtWidgets.QFrame(Dialog) |
|
64 |
self.bottomFrame.setMinimumSize(QtCore.QSize(0, 100)) |
|
65 |
self.bottomFrame.setObjectName("bottomFrame") |
|
66 |
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.bottomFrame) |
|
67 |
self.verticalLayout_4.setObjectName("verticalLayout_4") |
|
68 |
self.detectResultVerticalLayout_2 = QtWidgets.QVBoxLayout() |
|
69 |
self.detectResultVerticalLayout_2.setObjectName("detectResultVerticalLayout_2") |
|
70 |
self.detectResultLabel_2 = QtWidgets.QLabel(self.bottomFrame) |
|
71 | 71 |
font = QtGui.QFont() |
72 | 72 |
font.setBold(True) |
73 | 73 |
font.setWeight(75) |
74 |
self.targetTextLabel.setFont(font) |
|
75 |
self.targetTextLabel.setObjectName("targetTextLabel") |
|
76 |
self.gridLayout_2.addWidget(self.targetTextLabel, 0, 0, 1, 1) |
|
77 |
self.widget_3 = QtWidgets.QWidget(self.targetToolsWidget) |
|
78 |
self.widget_3.setGeometry(QtCore.QRect(10, 40, 761, 121)) |
|
79 |
self.widget_3.setObjectName("widget_3") |
|
80 |
self.verticalLayoutWidget_3 = QtWidgets.QWidget(self.widget_3) |
|
81 |
self.verticalLayoutWidget_3.setGeometry(QtCore.QRect(0, 0, 761, 121)) |
|
82 |
self.verticalLayoutWidget_3.setObjectName("verticalLayoutWidget_3") |
|
83 |
self.targetVerticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_3) |
|
84 |
self.targetVerticalLayout.setContentsMargins(0, 0, 0, 0) |
|
85 |
self.targetVerticalLayout.setObjectName("targetVerticalLayout") |
|
86 |
self.tVerticalLayout.addWidget(self.targetToolsWidget) |
|
87 |
self.gridLayout.addWidget(self.widget, 0, 0, 1, 1) |
|
74 |
self.detectResultLabel_2.setFont(font) |
|
75 |
self.detectResultLabel_2.setObjectName("detectResultLabel_2") |
|
76 |
self.detectResultVerticalLayout_2.addWidget(self.detectResultLabel_2) |
|
77 |
self.detectResultTextEdit_2 = QtWidgets.QTextEdit(self.bottomFrame) |
|
78 |
self.detectResultTextEdit_2.setObjectName("detectResultTextEdit_2") |
|
79 |
self.detectResultVerticalLayout_2.addWidget(self.detectResultTextEdit_2) |
|
80 |
self.verticalLayout_4.addLayout(self.detectResultVerticalLayout_2) |
|
81 |
self.gridLayout.addWidget(self.bottomFrame, 1, 0, 1, 1) |
|
82 |
self.bottomFrame.raise_() |
|
83 |
self.topFrame.raise_() |
|
84 |
self.ocrDialogButtonBox.raise_() |
|
88 | 85 |
|
89 | 86 |
self.retranslateUi(Dialog) |
90 |
self.ocrDialogButtonBox.accepted.connect(Dialog.accept) |
|
91 |
self.ocrDialogButtonBox.rejected.connect(Dialog.reject) |
|
92 | 87 |
QtCore.QMetaObject.connectSlotsByName(Dialog) |
93 | 88 |
|
94 | 89 |
def retranslateUi(self, Dialog): |
95 | 90 |
_translate = QtCore.QCoreApplication.translate |
96 | 91 |
Dialog.setWindowTitle(_translate("Dialog", "OCR")) |
97 |
self.detectResultLabel.setText(_translate("Dialog", "검출 결과"))
|
|
98 |
self.clockPushButton.setText(_translate("Dialog", "Clock"))
|
|
99 |
self.counterClockPushButton.setText(_translate("Dialog", "CounterClock"))
|
|
100 |
self.redetectPushButton.setText(_translate("Dialog", "Re-Detect")) |
|
101 |
self.targetTextLabel.setText(_translate("Dialog", "검출 대상"))
|
|
92 |
self.targetTextLabel_2.setText(_translate("Dialog", "검출 대상"))
|
|
93 |
self.counterClockPushButton_2.setText(_translate("Dialog", "CounterClock"))
|
|
94 |
self.clockPushButton_2.setText(_translate("Dialog", "Clock"))
|
|
95 |
self.redetectPushButton_2.setText(_translate("Dialog", "Re-Detect"))
|
|
96 |
self.detectResultLabel_2.setText(_translate("Dialog", "검출 결과"))
|
|
102 | 97 |
|
103 | 98 |
|
104 | 99 |
if __name__ == "__main__": |
내보내기 Unified diff