개정판 78e767b9
issue #49: allowable pair option added
Change-Id: I6ff00d89886ace354252aa2c47579550778bc2a5
DTI_PID/DTI_PID/CodeTableDialog.py | ||
---|---|---|
496 | 496 |
|
497 | 497 |
def makeAllowable(self, code): |
498 | 498 |
''' make allowable for code ''' |
499 |
from CodeTables import CodeTable
|
|
499 |
import re
|
|
500 | 500 |
|
501 | 501 |
founds = [] |
502 | 502 |
code_ori = code |
503 |
for allowables in CodeTable.ALLOWABLES: |
|
503 |
app_doc_data = AppDocData.instance() |
|
504 |
configs = app_doc_data.getConfigs('Text Recognition', 'Allowable Pair') |
|
505 |
|
|
506 |
pair = configs[0].value if 1 == len(configs) else "1Il, 0OD, 8B, 2Z, Ss5" |
|
507 |
pair = pair.replace(' ', '').split(',') |
|
508 |
allowable_list = [list(text) for text in pair] |
|
509 |
for allowables in allowable_list: |
|
504 | 510 |
f = '(' + '|'.join(allowables) + ')' |
505 | 511 |
for chars in re.finditer(f, code): |
506 | 512 |
founds.append((chars.start(), chars.end(), f)) |
DTI_PID/DTI_PID/ConfigurationDialog.py | ||
---|---|---|
80 | 80 |
configs = docData.getConfigs('Text Recognition', 'White Single Text') |
81 | 81 |
self.ui.lineEditSingleText.setText(configs[0].value) if 1 == len(configs) else \ |
82 | 82 |
self.ui.lineEditSingleText.setText('H,L,1,2,3,4,5,6,7,8,9,0') |
83 |
configs = docData.getConfigs('Text Recognition', 'Allowable Pair') |
|
84 |
self.ui.lineEditAllowablePair.setText(configs[0].value) if 1 == len(configs) else \ |
|
85 |
self.ui.lineEditAllowablePair.setText("1Il,0OD,8B,2Z,Ss5") |
|
83 | 86 |
configs = docData.getConfigs('Text Recognition', 'Area Offset') |
84 | 87 |
self.ui.spinBoxTextAreaOffset.setValue(int(configs[0].value)) if 1 == len(configs) else \ |
85 | 88 |
self.ui.spinBoxTextAreaOffset.setValue(20) |
... | ... | |
974 | 977 |
configs.append(Config('Drain Size Rule', 'Size', docData.drain_size)) |
975 | 978 |
configs.append(Config('Text Recognition', 'White Character List', self.ui.lineEditWhiteCharList.text())) |
976 | 979 |
configs.append(Config('Text Recognition', 'White Single Text', self.ui.lineEditSingleText.text())) |
980 |
configs.append(Config('Text Recognition', 'Allowable Pair', self.ui.lineEditAllowablePair.text())) |
|
977 | 981 |
configs.append(Config('Text Recognition', 'Page Segmentation Modes', |
978 | 982 |
str(self.ui.comboBoxPageSegmentationModes.currentIndex()))) |
979 | 983 |
# Add Line Color Option - 2018.07.06 by kyouho |
DTI_PID/DTI_PID/Configuration_UI.py | ||
---|---|---|
11 | 11 |
class Ui_ConfigurationDialog(object): |
12 | 12 |
def setupUi(self, ConfigurationDialog): |
13 | 13 |
ConfigurationDialog.setObjectName("ConfigurationDialog") |
14 |
ConfigurationDialog.resize(768, 766)
|
|
14 |
ConfigurationDialog.resize(768, 793)
|
|
15 | 15 |
font = QtGui.QFont() |
16 | 16 |
font.setFamily("맑은 고딕") |
17 | 17 |
ConfigurationDialog.setFont(font) |
... | ... | |
108 | 108 |
self.gridLayout_14.setObjectName("gridLayout_14") |
109 | 109 |
self.gridLayout_25 = QtWidgets.QGridLayout() |
110 | 110 |
self.gridLayout_25.setObjectName("gridLayout_25") |
111 |
self.label_44 = QtWidgets.QLabel(self.groupBoxText) |
|
112 |
self.label_44.setObjectName("label_44") |
|
113 |
self.gridLayout_25.addWidget(self.label_44, 9, 0, 1, 1) |
|
114 |
self.spinBoxTextAreaOffset = QtWidgets.QSpinBox(self.groupBoxText) |
|
115 |
self.spinBoxTextAreaOffset.setObjectName("spinBoxTextAreaOffset") |
|
116 |
self.gridLayout_25.addWidget(self.spinBoxTextAreaOffset, 9, 1, 1, 1) |
|
111 | 117 |
self.comboBoxOCRData = QtWidgets.QComboBox(self.groupBoxText) |
112 | 118 |
self.comboBoxOCRData.setMinimumSize(QtCore.QSize(200, 0)) |
113 | 119 |
self.comboBoxOCRData.setMaximumSize(QtCore.QSize(200, 16777215)) |
114 | 120 |
self.comboBoxOCRData.setObjectName("comboBoxOCRData") |
115 | 121 |
self.gridLayout_25.addWidget(self.comboBoxOCRData, 0, 1, 1, 1) |
116 |
self.label_22 = QtWidgets.QLabel(self.groupBoxText) |
|
117 |
self.label_22.setObjectName("label_22") |
|
118 |
self.gridLayout_25.addWidget(self.label_22, 7, 0, 1, 1) |
|
119 |
self.label_7 = QtWidgets.QLabel(self.groupBoxText) |
|
120 |
self.label_7.setObjectName("label_7") |
|
121 |
self.gridLayout_25.addWidget(self.label_7, 1, 0, 1, 1) |
|
122 |
self.lineEditSingleText = QtWidgets.QLineEdit(self.groupBoxText) |
|
123 |
self.lineEditSingleText.setObjectName("lineEditSingleText") |
|
124 |
self.gridLayout_25.addWidget(self.lineEditSingleText, 4, 1, 1, 1) |
|
125 |
self.spinBoxExpandSize = QtWidgets.QSpinBox(self.groupBoxText) |
|
126 |
self.spinBoxExpandSize.setMinimumSize(QtCore.QSize(100, 0)) |
|
127 |
self.spinBoxExpandSize.setObjectName("spinBoxExpandSize") |
|
128 |
self.gridLayout_25.addWidget(self.spinBoxExpandSize, 5, 1, 1, 1) |
|
129 | 122 |
self.maxTextSizeSpinBox = QtWidgets.QSpinBox(self.groupBoxText) |
130 | 123 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) |
131 | 124 |
sizePolicy.setHorizontalStretch(0) |
... | ... | |
135 | 128 |
self.maxTextSizeSpinBox.setMaximum(150) |
136 | 129 |
self.maxTextSizeSpinBox.setProperty("value", 60) |
137 | 130 |
self.maxTextSizeSpinBox.setObjectName("maxTextSizeSpinBox") |
138 |
self.gridLayout_25.addWidget(self.maxTextSizeSpinBox, 6, 3, 1, 1) |
|
139 |
self.comboBoxPageSegmentationModes = QtWidgets.QComboBox(self.groupBoxText) |
|
140 |
self.comboBoxPageSegmentationModes.setObjectName("comboBoxPageSegmentationModes") |
|
141 |
self.gridLayout_25.addWidget(self.comboBoxPageSegmentationModes, 2, 1, 1, 3) |
|
142 |
self.label_17 = QtWidgets.QLabel(self.groupBoxText) |
|
143 |
self.label_17.setObjectName("label_17") |
|
144 |
self.gridLayout_25.addWidget(self.label_17, 6, 0, 1, 1) |
|
145 |
self.lineEditWhiteCharList = QtWidgets.QLineEdit(self.groupBoxText) |
|
146 |
self.lineEditWhiteCharList.setObjectName("lineEditWhiteCharList") |
|
147 |
self.gridLayout_25.addWidget(self.lineEditWhiteCharList, 1, 1, 1, 3) |
|
131 |
self.gridLayout_25.addWidget(self.maxTextSizeSpinBox, 7, 3, 1, 1) |
|
148 | 132 |
self.spinBoxMergeSize = QtWidgets.QSpinBox(self.groupBoxText) |
149 | 133 |
self.spinBoxMergeSize.setMinimumSize(QtCore.QSize(100, 0)) |
150 | 134 |
self.spinBoxMergeSize.setObjectName("spinBoxMergeSize") |
151 |
self.gridLayout_25.addWidget(self.spinBoxMergeSize, 7, 1, 1, 1) |
|
152 |
self.comboBoxOCREngineMode = QtWidgets.QComboBox(self.groupBoxText) |
|
153 |
self.comboBoxOCREngineMode.setObjectName("comboBoxOCREngineMode") |
|
154 |
self.gridLayout_25.addWidget(self.comboBoxOCREngineMode, 3, 1, 1, 3) |
|
155 |
self.label_18 = QtWidgets.QLabel(self.groupBoxText) |
|
156 |
self.label_18.setObjectName("label_18") |
|
157 |
self.gridLayout_25.addWidget(self.label_18, 6, 2, 1, 1) |
|
135 |
self.gridLayout_25.addWidget(self.spinBoxMergeSize, 8, 1, 1, 1) |
|
158 | 136 |
self.label_21 = QtWidgets.QLabel(self.groupBoxText) |
159 | 137 |
self.label_21.setObjectName("label_21") |
160 |
self.gridLayout_25.addWidget(self.label_21, 5, 2, 1, 1) |
|
161 |
self.label_37 = QtWidgets.QLabel(self.groupBoxText) |
|
162 |
self.label_37.setObjectName("label_37") |
|
163 |
self.gridLayout_25.addWidget(self.label_37, 4, 0, 1, 1) |
|
138 |
self.gridLayout_25.addWidget(self.label_21, 6, 2, 1, 1) |
|
164 | 139 |
self.spinBoxShrinkSize = QtWidgets.QSpinBox(self.groupBoxText) |
165 | 140 |
self.spinBoxShrinkSize.setMinimumSize(QtCore.QSize(100, 0)) |
166 | 141 |
self.spinBoxShrinkSize.setObjectName("spinBoxShrinkSize") |
167 |
self.gridLayout_25.addWidget(self.spinBoxShrinkSize, 5, 3, 1, 1) |
|
168 |
self.label_43 = QtWidgets.QLabel(self.groupBoxText) |
|
169 |
self.label_43.setObjectName("label_43") |
|
170 |
self.gridLayout_25.addWidget(self.label_43, 3, 0, 1, 1) |
|
142 |
self.gridLayout_25.addWidget(self.spinBoxShrinkSize, 6, 3, 1, 1) |
|
171 | 143 |
self.labelTesseractVersion = QtWidgets.QLabel(self.groupBoxText) |
172 | 144 |
self.labelTesseractVersion.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) |
173 | 145 |
self.labelTesseractVersion.setObjectName("labelTesseractVersion") |
174 | 146 |
self.gridLayout_25.addWidget(self.labelTesseractVersion, 0, 2, 1, 2) |
175 |
self.label_39 = QtWidgets.QLabel(self.groupBoxText) |
|
176 |
self.label_39.setObjectName("label_39") |
|
177 |
self.gridLayout_25.addWidget(self.label_39, 2, 0, 1, 1) |
|
147 |
self.label_22 = QtWidgets.QLabel(self.groupBoxText) |
|
148 |
self.label_22.setObjectName("label_22") |
|
149 |
self.gridLayout_25.addWidget(self.label_22, 8, 0, 1, 1) |
|
150 |
self.spinBoxExpandSize = QtWidgets.QSpinBox(self.groupBoxText) |
|
151 |
self.spinBoxExpandSize.setMinimumSize(QtCore.QSize(100, 0)) |
|
152 |
self.spinBoxExpandSize.setObjectName("spinBoxExpandSize") |
|
153 |
self.gridLayout_25.addWidget(self.spinBoxExpandSize, 6, 1, 1, 1) |
|
178 | 154 |
self.label_19 = QtWidgets.QLabel(self.groupBoxText) |
179 | 155 |
self.label_19.setObjectName("label_19") |
180 | 156 |
self.gridLayout_25.addWidget(self.label_19, 0, 0, 1, 1) |
... | ... | |
187 | 163 |
self.minTextSizeSpinBox.setMaximumSize(QtCore.QSize(16777215, 16777215)) |
188 | 164 |
self.minTextSizeSpinBox.setProperty("value", 30) |
189 | 165 |
self.minTextSizeSpinBox.setObjectName("minTextSizeSpinBox") |
190 |
self.gridLayout_25.addWidget(self.minTextSizeSpinBox, 6, 1, 1, 1) |
|
166 |
self.gridLayout_25.addWidget(self.minTextSizeSpinBox, 7, 1, 1, 1) |
|
167 |
self.lineEditWhiteCharList = QtWidgets.QLineEdit(self.groupBoxText) |
|
168 |
font = QtGui.QFont() |
|
169 |
font.setFamily("Consolas") |
|
170 |
self.lineEditWhiteCharList.setFont(font) |
|
171 |
self.lineEditWhiteCharList.setObjectName("lineEditWhiteCharList") |
|
172 |
self.gridLayout_25.addWidget(self.lineEditWhiteCharList, 1, 1, 1, 3) |
|
173 |
self.comboBoxOCREngineMode = QtWidgets.QComboBox(self.groupBoxText) |
|
174 |
self.comboBoxOCREngineMode.setObjectName("comboBoxOCREngineMode") |
|
175 |
self.gridLayout_25.addWidget(self.comboBoxOCREngineMode, 3, 1, 1, 3) |
|
176 |
self.label_39 = QtWidgets.QLabel(self.groupBoxText) |
|
177 |
self.label_39.setObjectName("label_39") |
|
178 |
self.gridLayout_25.addWidget(self.label_39, 2, 0, 1, 1) |
|
191 | 179 |
self.label_20 = QtWidgets.QLabel(self.groupBoxText) |
192 | 180 |
self.label_20.setObjectName("label_20") |
193 |
self.gridLayout_25.addWidget(self.label_20, 5, 0, 1, 1) |
|
194 |
self.label_44 = QtWidgets.QLabel(self.groupBoxText) |
|
195 |
self.label_44.setObjectName("label_44") |
|
196 |
self.gridLayout_25.addWidget(self.label_44, 8, 0, 1, 1) |
|
197 |
self.spinBoxTextAreaOffset = QtWidgets.QSpinBox(self.groupBoxText) |
|
198 |
self.spinBoxTextAreaOffset.setObjectName("spinBoxTextAreaOffset") |
|
199 |
self.gridLayout_25.addWidget(self.spinBoxTextAreaOffset, 8, 1, 1, 1) |
|
181 |
self.gridLayout_25.addWidget(self.label_20, 6, 0, 1, 1) |
|
182 |
self.comboBoxPageSegmentationModes = QtWidgets.QComboBox(self.groupBoxText) |
|
183 |
self.comboBoxPageSegmentationModes.setObjectName("comboBoxPageSegmentationModes") |
|
184 |
self.gridLayout_25.addWidget(self.comboBoxPageSegmentationModes, 2, 1, 1, 3) |
|
185 |
self.label_18 = QtWidgets.QLabel(self.groupBoxText) |
|
186 |
self.label_18.setObjectName("label_18") |
|
187 |
self.gridLayout_25.addWidget(self.label_18, 7, 2, 1, 1) |
|
188 |
self.label_7 = QtWidgets.QLabel(self.groupBoxText) |
|
189 |
self.label_7.setObjectName("label_7") |
|
190 |
self.gridLayout_25.addWidget(self.label_7, 1, 0, 1, 1) |
|
191 |
self.label_43 = QtWidgets.QLabel(self.groupBoxText) |
|
192 |
self.label_43.setObjectName("label_43") |
|
193 |
self.gridLayout_25.addWidget(self.label_43, 3, 0, 1, 1) |
|
194 |
self.label_37 = QtWidgets.QLabel(self.groupBoxText) |
|
195 |
self.label_37.setObjectName("label_37") |
|
196 |
self.gridLayout_25.addWidget(self.label_37, 4, 0, 1, 1) |
|
197 |
self.label_17 = QtWidgets.QLabel(self.groupBoxText) |
|
198 |
self.label_17.setObjectName("label_17") |
|
199 |
self.gridLayout_25.addWidget(self.label_17, 7, 0, 1, 1) |
|
200 |
self.label_50 = QtWidgets.QLabel(self.groupBoxText) |
|
201 |
self.label_50.setObjectName("label_50") |
|
202 |
self.gridLayout_25.addWidget(self.label_50, 5, 0, 1, 1) |
|
203 |
self.lineEditSingleText = QtWidgets.QLineEdit(self.groupBoxText) |
|
204 |
font = QtGui.QFont() |
|
205 |
font.setFamily("Consolas") |
|
206 |
self.lineEditSingleText.setFont(font) |
|
207 |
self.lineEditSingleText.setObjectName("lineEditSingleText") |
|
208 |
self.gridLayout_25.addWidget(self.lineEditSingleText, 4, 1, 1, 3) |
|
209 |
self.lineEditAllowablePair = QtWidgets.QLineEdit(self.groupBoxText) |
|
210 |
font = QtGui.QFont() |
|
211 |
font.setFamily("Consolas") |
|
212 |
self.lineEditAllowablePair.setFont(font) |
|
213 |
self.lineEditAllowablePair.setObjectName("lineEditAllowablePair") |
|
214 |
self.gridLayout_25.addWidget(self.lineEditAllowablePair, 5, 1, 1, 3) |
|
200 | 215 |
self.gridLayout_14.addLayout(self.gridLayout_25, 0, 0, 1, 1) |
201 | 216 |
self.gridLayout_2.addWidget(self.groupBoxText, 0, 1, 1, 1) |
202 | 217 |
self.groupBoxAttribute = QtWidgets.QGroupBox(self.Recognition) |
... | ... | |
848 | 863 |
self.label_29.setText(_translate("ConfigurationDialog", "Drawing Thickness Reinforcement Step : ")) |
849 | 864 |
self.checkBoxApplyGaussianBlur.setText(_translate("ConfigurationDialog", "Apply")) |
850 | 865 |
self.groupBoxText.setTitle(_translate("ConfigurationDialog", "Text Detection")) |
851 |
self.label_22.setText(_translate("ConfigurationDialog", "Merge Size : ")) |
|
852 |
self.label_7.setText(_translate("ConfigurationDialog", "Detected string : ")) |
|
853 |
self.label_17.setText(_translate("ConfigurationDialog", "Minimum Text Size : ")) |
|
854 |
self.label_18.setText(_translate("ConfigurationDialog", "Maximum Text Size : ")) |
|
866 |
self.label_44.setText(_translate("ConfigurationDialog", "Text Area Offset : ")) |
|
855 | 867 |
self.label_21.setText(_translate("ConfigurationDialog", "Erosion Size : ")) |
856 |
self.label_37.setText(_translate("ConfigurationDialog", "Allowed Single Text : ")) |
|
857 |
self.label_43.setText(_translate("ConfigurationDialog", "OCR Engine Mode")) |
|
858 | 868 |
self.labelTesseractVersion.setText(_translate("ConfigurationDialog", "TesseractVersion")) |
859 |
self.label_39.setText(_translate("ConfigurationDialog", "Page segmentations modes"))
|
|
869 |
self.label_22.setText(_translate("ConfigurationDialog", "Merge Size : "))
|
|
860 | 870 |
self.label_19.setText(_translate("ConfigurationDialog", "OCR Source : ")) |
871 |
self.label_39.setText(_translate("ConfigurationDialog", "Page segmentations modes")) |
|
861 | 872 |
self.label_20.setText(_translate("ConfigurationDialog", "Expansion Size : ")) |
862 |
self.label_44.setText(_translate("ConfigurationDialog", "Text Area Offset : ")) |
|
873 |
self.label_18.setText(_translate("ConfigurationDialog", "Maximum Text Size : ")) |
|
874 |
self.label_7.setText(_translate("ConfigurationDialog", "Detected string : ")) |
|
875 |
self.label_43.setText(_translate("ConfigurationDialog", "OCR Engine Mode")) |
|
876 |
self.label_37.setText(_translate("ConfigurationDialog", "Allowed Single Text : ")) |
|
877 |
self.label_17.setText(_translate("ConfigurationDialog", "Minimum Text Size : ")) |
|
878 |
self.label_50.setText(_translate("ConfigurationDialog", "Allowable Pair : ")) |
|
863 | 879 |
self.groupBoxAttribute.setTitle(_translate("ConfigurationDialog", "Attribute")) |
864 | 880 |
self.label_6.setText(_translate("ConfigurationDialog", "Size Delimiter : ")) |
865 | 881 |
self.label_24.setText(_translate("ConfigurationDialog", "Line Flow Mark Position(Percent) : ")) |
DTI_PID/DTI_PID/UI/Configuration.ui | ||
---|---|---|
7 | 7 |
<x>0</x> |
8 | 8 |
<y>0</y> |
9 | 9 |
<width>768</width> |
10 |
<height>766</height>
|
|
10 |
<height>793</height>
|
|
11 | 11 |
</rect> |
12 | 12 |
</property> |
13 | 13 |
<property name="font"> |
... | ... | |
213 | 213 |
<layout class="QGridLayout" name="gridLayout_14"> |
214 | 214 |
<item row="0" column="0"> |
215 | 215 |
<layout class="QGridLayout" name="gridLayout_25"> |
216 |
<item row="9" column="0"> |
|
217 |
<widget class="QLabel" name="label_44"> |
|
218 |
<property name="text"> |
|
219 |
<string>Text Area Offset : </string> |
|
220 |
</property> |
|
221 |
</widget> |
|
222 |
</item> |
|
223 |
<item row="9" column="1"> |
|
224 |
<widget class="QSpinBox" name="spinBoxTextAreaOffset"/> |
|
225 |
</item> |
|
216 | 226 |
<item row="0" column="1"> |
217 | 227 |
<widget class="QComboBox" name="comboBoxOCRData"> |
218 | 228 |
<property name="minimumSize"> |
... | ... | |
229 | 239 |
</property> |
230 | 240 |
</widget> |
231 | 241 |
</item> |
232 |
<item row="7" column="0"> |
|
233 |
<widget class="QLabel" name="label_22"> |
|
234 |
<property name="text"> |
|
235 |
<string>Merge Size : </string> |
|
236 |
</property> |
|
237 |
</widget> |
|
238 |
</item> |
|
239 |
<item row="1" column="0"> |
|
240 |
<widget class="QLabel" name="label_7"> |
|
241 |
<property name="text"> |
|
242 |
<string>Detected string : </string> |
|
243 |
</property> |
|
244 |
</widget> |
|
245 |
</item> |
|
246 |
<item row="4" column="1"> |
|
247 |
<widget class="QLineEdit" name="lineEditSingleText"/> |
|
248 |
</item> |
|
249 |
<item row="5" column="1"> |
|
250 |
<widget class="QSpinBox" name="spinBoxExpandSize"> |
|
251 |
<property name="minimumSize"> |
|
252 |
<size> |
|
253 |
<width>100</width> |
|
254 |
<height>0</height> |
|
255 |
</size> |
|
256 |
</property> |
|
257 |
</widget> |
|
258 |
</item> |
|
259 |
<item row="6" column="3"> |
|
242 |
<item row="7" column="3"> |
|
260 | 243 |
<widget class="QSpinBox" name="maxTextSizeSpinBox"> |
261 | 244 |
<property name="sizePolicy"> |
262 | 245 |
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> |
... | ... | |
272 | 255 |
</property> |
273 | 256 |
</widget> |
274 | 257 |
</item> |
275 |
<item row="2" column="1" colspan="3"> |
|
276 |
<widget class="QComboBox" name="comboBoxPageSegmentationModes"/> |
|
277 |
</item> |
|
278 |
<item row="6" column="0"> |
|
279 |
<widget class="QLabel" name="label_17"> |
|
280 |
<property name="text"> |
|
281 |
<string>Minimum Text Size : </string> |
|
282 |
</property> |
|
283 |
</widget> |
|
284 |
</item> |
|
285 |
<item row="1" column="1" colspan="3"> |
|
286 |
<widget class="QLineEdit" name="lineEditWhiteCharList"/> |
|
287 |
</item> |
|
288 |
<item row="7" column="1"> |
|
258 |
<item row="8" column="1"> |
|
289 | 259 |
<widget class="QSpinBox" name="spinBoxMergeSize"> |
290 | 260 |
<property name="minimumSize"> |
291 | 261 |
<size> |
... | ... | |
295 | 265 |
</property> |
296 | 266 |
</widget> |
297 | 267 |
</item> |
298 |
<item row="3" column="1" colspan="3"> |
|
299 |
<widget class="QComboBox" name="comboBoxOCREngineMode"/> |
|
300 |
</item> |
|
301 | 268 |
<item row="6" column="2"> |
302 |
<widget class="QLabel" name="label_18"> |
|
303 |
<property name="text"> |
|
304 |
<string>Maximum Text Size : </string> |
|
305 |
</property> |
|
306 |
</widget> |
|
307 |
</item> |
|
308 |
<item row="5" column="2"> |
|
309 | 269 |
<widget class="QLabel" name="label_21"> |
310 | 270 |
<property name="text"> |
311 | 271 |
<string>Erosion Size : </string> |
312 | 272 |
</property> |
313 | 273 |
</widget> |
314 | 274 |
</item> |
315 |
<item row="4" column="0"> |
|
316 |
<widget class="QLabel" name="label_37"> |
|
317 |
<property name="text"> |
|
318 |
<string>Allowed Single Text : </string> |
|
319 |
</property> |
|
320 |
</widget> |
|
321 |
</item> |
|
322 |
<item row="5" column="3"> |
|
275 |
<item row="6" column="3"> |
|
323 | 276 |
<widget class="QSpinBox" name="spinBoxShrinkSize"> |
324 | 277 |
<property name="minimumSize"> |
325 | 278 |
<size> |
... | ... | |
329 | 282 |
</property> |
330 | 283 |
</widget> |
331 | 284 |
</item> |
332 |
<item row="3" column="0"> |
|
333 |
<widget class="QLabel" name="label_43"> |
|
334 |
<property name="text"> |
|
335 |
<string>OCR Engine Mode</string> |
|
336 |
</property> |
|
337 |
</widget> |
|
338 |
</item> |
|
339 | 285 |
<item row="0" column="2" colspan="2"> |
340 | 286 |
<widget class="QLabel" name="labelTesseractVersion"> |
341 | 287 |
<property name="text"> |
... | ... | |
346 | 292 |
</property> |
347 | 293 |
</widget> |
348 | 294 |
</item> |
349 |
<item row="2" column="0">
|
|
350 |
<widget class="QLabel" name="label_39">
|
|
295 |
<item row="8" column="0">
|
|
296 |
<widget class="QLabel" name="label_22">
|
|
351 | 297 |
<property name="text"> |
352 |
<string>Page segmentations modes</string> |
|
298 |
<string>Merge Size : </string> |
|
299 |
</property> |
|
300 |
</widget> |
|
301 |
</item> |
|
302 |
<item row="6" column="1"> |
|
303 |
<widget class="QSpinBox" name="spinBoxExpandSize"> |
|
304 |
<property name="minimumSize"> |
|
305 |
<size> |
|
306 |
<width>100</width> |
|
307 |
<height>0</height> |
|
308 |
</size> |
|
353 | 309 |
</property> |
354 | 310 |
</widget> |
355 | 311 |
</item> |
... | ... | |
360 | 316 |
</property> |
361 | 317 |
</widget> |
362 | 318 |
</item> |
363 |
<item row="6" column="1">
|
|
319 |
<item row="7" column="1">
|
|
364 | 320 |
<widget class="QSpinBox" name="minTextSizeSpinBox"> |
365 | 321 |
<property name="sizePolicy"> |
366 | 322 |
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> |
... | ... | |
379 | 335 |
</property> |
380 | 336 |
</widget> |
381 | 337 |
</item> |
382 |
<item row="5" column="0"> |
|
338 |
<item row="1" column="1" colspan="3"> |
|
339 |
<widget class="QLineEdit" name="lineEditWhiteCharList"> |
|
340 |
<property name="font"> |
|
341 |
<font> |
|
342 |
<family>Consolas</family> |
|
343 |
</font> |
|
344 |
</property> |
|
345 |
</widget> |
|
346 |
</item> |
|
347 |
<item row="3" column="1" colspan="3"> |
|
348 |
<widget class="QComboBox" name="comboBoxOCREngineMode"/> |
|
349 |
</item> |
|
350 |
<item row="2" column="0"> |
|
351 |
<widget class="QLabel" name="label_39"> |
|
352 |
<property name="text"> |
|
353 |
<string>Page segmentations modes</string> |
|
354 |
</property> |
|
355 |
</widget> |
|
356 |
</item> |
|
357 |
<item row="6" column="0"> |
|
383 | 358 |
<widget class="QLabel" name="label_20"> |
384 | 359 |
<property name="text"> |
385 | 360 |
<string>Expansion Size : </string> |
386 | 361 |
</property> |
387 | 362 |
</widget> |
388 | 363 |
</item> |
389 |
<item row="8" column="0"> |
|
390 |
<widget class="QLabel" name="label_44"> |
|
364 |
<item row="2" column="1" colspan="3"> |
|
365 |
<widget class="QComboBox" name="comboBoxPageSegmentationModes"/> |
|
366 |
</item> |
|
367 |
<item row="7" column="2"> |
|
368 |
<widget class="QLabel" name="label_18"> |
|
391 | 369 |
<property name="text"> |
392 |
<string>Text Area Offset : </string>
|
|
370 |
<string>Maximum Text Size : </string>
|
|
393 | 371 |
</property> |
394 | 372 |
</widget> |
395 | 373 |
</item> |
396 |
<item row="8" column="1"> |
|
397 |
<widget class="QSpinBox" name="spinBoxTextAreaOffset"/> |
|
374 |
<item row="1" column="0"> |
|
375 |
<widget class="QLabel" name="label_7"> |
|
376 |
<property name="text"> |
|
377 |
<string>Detected string : </string> |
|
378 |
</property> |
|
379 |
</widget> |
|
380 |
</item> |
|
381 |
<item row="3" column="0"> |
|
382 |
<widget class="QLabel" name="label_43"> |
|
383 |
<property name="text"> |
|
384 |
<string>OCR Engine Mode</string> |
|
385 |
</property> |
|
386 |
</widget> |
|
387 |
</item> |
|
388 |
<item row="4" column="0"> |
|
389 |
<widget class="QLabel" name="label_37"> |
|
390 |
<property name="text"> |
|
391 |
<string>Allowed Single Text : </string> |
|
392 |
</property> |
|
393 |
</widget> |
|
394 |
</item> |
|
395 |
<item row="7" column="0"> |
|
396 |
<widget class="QLabel" name="label_17"> |
|
397 |
<property name="text"> |
|
398 |
<string>Minimum Text Size : </string> |
|
399 |
</property> |
|
400 |
</widget> |
|
401 |
</item> |
|
402 |
<item row="5" column="0"> |
|
403 |
<widget class="QLabel" name="label_50"> |
|
404 |
<property name="text"> |
|
405 |
<string>Allowable Pair : </string> |
|
406 |
</property> |
|
407 |
</widget> |
|
408 |
</item> |
|
409 |
<item row="4" column="1" colspan="3"> |
|
410 |
<widget class="QLineEdit" name="lineEditSingleText"> |
|
411 |
<property name="font"> |
|
412 |
<font> |
|
413 |
<family>Consolas</family> |
|
414 |
</font> |
|
415 |
</property> |
|
416 |
</widget> |
|
417 |
</item> |
|
418 |
<item row="5" column="1" colspan="3"> |
|
419 |
<widget class="QLineEdit" name="lineEditAllowablePair"> |
|
420 |
<property name="font"> |
|
421 |
<font> |
|
422 |
<family>Consolas</family> |
|
423 |
</font> |
|
424 |
</property> |
|
425 |
</widget> |
|
398 | 426 |
</item> |
399 | 427 |
</layout> |
400 | 428 |
</item> |
... | ... | |
1735 | 1763 |
</connection> |
1736 | 1764 |
</connections> |
1737 | 1765 |
<buttongroups> |
1738 |
<buttongroup name="buttonGroup"/> |
|
1739 |
<buttongroup name="buttonGroup_5"/> |
|
1740 | 1766 |
<buttongroup name="buttonGroup_4"/> |
1741 |
<buttongroup name="buttonGroup_6"/> |
|
1742 |
<buttongroup name="buttonGroup_3"/> |
|
1743 | 1767 |
<buttongroup name="buttonGroup_2"/> |
1768 |
<buttongroup name="buttonGroup_3"/> |
|
1769 |
<buttongroup name="buttonGroup"/> |
|
1770 |
<buttongroup name="buttonGroup_6"/> |
|
1771 |
<buttongroup name="buttonGroup_5"/> |
|
1744 | 1772 |
</buttongroups> |
1745 | 1773 |
</ui> |
내보내기 Unified diff