개정판 1bcdcbba
issue #622: change configuration ui layout and add single char text option
Change-Id: I2adb9eb6387a139a59583cd006cd3d2d81d7a4b4
DTI_PID/DTI_PID/ConfigurationDialog.py | ||
---|---|---|
66 | 66 |
self.ui.spinBoxMergeSize.setValue(int(configs[0].value)) if 1 == len(configs) else self.ui.spinBoxMergeSize.setValue(10) |
67 | 67 |
configs = docData.getConfigs('Text Recognition', 'White Character List') |
68 | 68 |
self.ui.lineEditWhiteCharList.setText(configs[0].value) if 1 == len(configs) else self.ui.lineEditWhiteCharList.setText(TOCR.DEFAULT_CONF[40:]) |
69 |
configs = docData.getConfigs('Text Recognition', 'White Single Text') |
|
70 |
self.ui.lineEditSingleText.setText(configs[0].value) if 1 == len(configs) else self.ui.lineEditSingleText.setText('H,L') |
|
71 |
|
|
69 | 72 |
|
70 | 73 |
configs = docData.getConfigs('Text Size', 'Min Text Size') |
71 | 74 |
self.ui.minTextSizeSpinBox.setValue(int(configs[0].value)) if 1 == len(configs) else self.ui.minTextSizeSpinBox.setValue(30) |
... | ... | |
710 | 713 |
docData.drain_size = self.ui.lineEditDrainSize.text() |
711 | 714 |
configs.append(Config('Drain Size Rule', 'Size', docData.drain_size)) |
712 | 715 |
configs.append(Config('Text Recognition', 'White Character List', self.ui.lineEditWhiteCharList.text())) |
716 |
configs.append(Config('Text Recognition', 'White Single Text', self.ui.lineEditSingleText.text())) |
|
713 | 717 |
|
714 | 718 |
# Add Line Color Option - 2018.07.06 by kyouho |
715 | 719 |
rbRandomValue = self.ui.radioButtonRandom.isChecked() |
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(704, 997)
|
|
14 |
ConfigurationDialog.resize(704, 871)
|
|
15 | 15 |
font = QtGui.QFont() |
16 | 16 |
font.setFamily("맑은 고딕") |
17 | 17 |
ConfigurationDialog.setFont(font) |
... | ... | |
27 | 27 |
self.Recognition.setObjectName("Recognition") |
28 | 28 |
self.gridLayout_2 = QtWidgets.QGridLayout(self.Recognition) |
29 | 29 |
self.gridLayout_2.setObjectName("gridLayout_2") |
30 |
self.groupBoxFilter = QtWidgets.QGroupBox(self.Recognition) |
|
31 |
self.groupBoxFilter.setObjectName("groupBoxFilter") |
|
32 |
self.gridLayout_8 = QtWidgets.QGridLayout(self.groupBoxFilter) |
|
33 |
self.gridLayout_8.setObjectName("gridLayout_8") |
|
34 |
self.verticalLayout_9 = QtWidgets.QVBoxLayout() |
|
35 |
self.verticalLayout_9.setObjectName("verticalLayout_9") |
|
36 |
self.horizontalLayout_16 = QtWidgets.QHBoxLayout() |
|
37 |
self.horizontalLayout_16.setObjectName("horizontalLayout_16") |
|
38 |
self.label_10 = QtWidgets.QLabel(self.groupBoxFilter) |
|
39 |
self.label_10.setMaximumSize(QtCore.QSize(230, 16777215)) |
|
40 |
self.label_10.setObjectName("label_10") |
|
41 |
self.horizontalLayout_16.addWidget(self.label_10, 0, QtCore.Qt.AlignVCenter) |
|
42 |
self.spinBoxMinimumSize = QtWidgets.QSpinBox(self.groupBoxFilter) |
|
43 |
self.spinBoxMinimumSize.setObjectName("spinBoxMinimumSize") |
|
44 |
self.horizontalLayout_16.addWidget(self.spinBoxMinimumSize) |
|
45 |
self.verticalLayout_9.addLayout(self.horizontalLayout_16) |
|
46 |
self.horizontalLayout_20 = QtWidgets.QHBoxLayout() |
|
47 |
self.horizontalLayout_20.setObjectName("horizontalLayout_20") |
|
48 |
self.label_33 = QtWidgets.QLabel(self.groupBoxFilter) |
|
49 |
self.label_33.setMinimumSize(QtCore.QSize(230, 0)) |
|
50 |
self.label_33.setMaximumSize(QtCore.QSize(230, 16777215)) |
|
51 |
self.label_33.setObjectName("label_33") |
|
52 |
self.horizontalLayout_20.addWidget(self.label_33) |
|
53 |
self.spinBoxUnrecognitionIgnoreStep = QtWidgets.QSpinBox(self.groupBoxFilter) |
|
54 |
self.spinBoxUnrecognitionIgnoreStep.setMaximum(10) |
|
55 |
self.spinBoxUnrecognitionIgnoreStep.setObjectName("spinBoxUnrecognitionIgnoreStep") |
|
56 |
self.horizontalLayout_20.addWidget(self.spinBoxUnrecognitionIgnoreStep) |
|
57 |
self.verticalLayout_9.addLayout(self.horizontalLayout_20) |
|
58 |
self.horizontalLayout_6 = QtWidgets.QHBoxLayout() |
|
59 |
self.horizontalLayout_6.setObjectName("horizontalLayout_6") |
|
60 |
self.label_29 = QtWidgets.QLabel(self.groupBoxFilter) |
|
61 |
self.label_29.setMaximumSize(QtCore.QSize(230, 16777215)) |
|
62 |
self.label_29.setObjectName("label_29") |
|
63 |
self.horizontalLayout_6.addWidget(self.label_29) |
|
64 |
self.spinBoxDilateSize = QtWidgets.QSpinBox(self.groupBoxFilter) |
|
65 |
self.spinBoxDilateSize.setMaximum(10) |
|
66 |
self.spinBoxDilateSize.setObjectName("spinBoxDilateSize") |
|
67 |
self.horizontalLayout_6.addWidget(self.spinBoxDilateSize) |
|
68 |
self.verticalLayout_9.addLayout(self.horizontalLayout_6) |
|
69 |
self.horizontalLayout_10 = QtWidgets.QHBoxLayout() |
|
70 |
self.horizontalLayout_10.setObjectName("horizontalLayout_10") |
|
71 |
self.label_32 = QtWidgets.QLabel(self.groupBoxFilter) |
|
72 |
self.label_32.setMaximumSize(QtCore.QSize(230, 16777215)) |
|
73 |
self.label_32.setObjectName("label_32") |
|
74 |
self.horizontalLayout_10.addWidget(self.label_32) |
|
75 |
self.spinBoxFlatSize = QtWidgets.QSpinBox(self.groupBoxFilter) |
|
76 |
self.spinBoxFlatSize.setObjectName("spinBoxFlatSize") |
|
77 |
self.horizontalLayout_10.addWidget(self.spinBoxFlatSize) |
|
78 |
self.verticalLayout_9.addLayout(self.horizontalLayout_10) |
|
79 |
self.gridLayout_8.addLayout(self.verticalLayout_9, 0, 0, 1, 1) |
|
80 |
self.gridLayout_2.addWidget(self.groupBoxFilter, 2, 1, 1, 1) |
|
81 |
self.groupBoxText = QtWidgets.QGroupBox(self.Recognition) |
|
82 |
self.groupBoxText.setObjectName("groupBoxText") |
|
83 |
self.gridLayout_14 = QtWidgets.QGridLayout(self.groupBoxText) |
|
84 |
self.gridLayout_14.setObjectName("gridLayout_14") |
|
85 |
self.verticalLayout_5 = QtWidgets.QVBoxLayout() |
|
86 |
self.verticalLayout_5.setObjectName("verticalLayout_5") |
|
87 |
self.horizontalLayout_14 = QtWidgets.QHBoxLayout() |
|
88 |
self.horizontalLayout_14.setObjectName("horizontalLayout_14") |
|
89 |
self.label_19 = QtWidgets.QLabel(self.groupBoxText) |
|
90 |
self.label_19.setObjectName("label_19") |
|
91 |
self.horizontalLayout_14.addWidget(self.label_19) |
|
92 |
self.comboBoxOCRData = QtWidgets.QComboBox(self.groupBoxText) |
|
93 |
self.comboBoxOCRData.setMinimumSize(QtCore.QSize(200, 0)) |
|
94 |
self.comboBoxOCRData.setMaximumSize(QtCore.QSize(200, 16777215)) |
|
95 |
self.comboBoxOCRData.setObjectName("comboBoxOCRData") |
|
96 |
self.horizontalLayout_14.addWidget(self.comboBoxOCRData) |
|
97 |
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
98 |
self.horizontalLayout_14.addItem(spacerItem) |
|
99 |
self.verticalLayout_5.addLayout(self.horizontalLayout_14) |
|
100 |
self.horizontalLayout_11 = QtWidgets.QHBoxLayout() |
|
101 |
self.horizontalLayout_11.setObjectName("horizontalLayout_11") |
|
102 |
self.label_7 = QtWidgets.QLabel(self.groupBoxText) |
|
103 |
self.label_7.setObjectName("label_7") |
|
104 |
self.horizontalLayout_11.addWidget(self.label_7) |
|
105 |
self.lineEditWhiteCharList = QtWidgets.QLineEdit(self.groupBoxText) |
|
106 |
self.lineEditWhiteCharList.setObjectName("lineEditWhiteCharList") |
|
107 |
self.horizontalLayout_11.addWidget(self.lineEditWhiteCharList) |
|
108 |
self.verticalLayout_5.addLayout(self.horizontalLayout_11) |
|
109 |
self.horizontalLayout_26 = QtWidgets.QHBoxLayout() |
|
110 |
self.horizontalLayout_26.setObjectName("horizontalLayout_26") |
|
111 |
self.label_37 = QtWidgets.QLabel(self.groupBoxText) |
|
112 |
self.label_37.setObjectName("label_37") |
|
113 |
self.horizontalLayout_26.addWidget(self.label_37) |
|
114 |
self.lineEditSingleText = QtWidgets.QLineEdit(self.groupBoxText) |
|
115 |
self.lineEditSingleText.setObjectName("lineEditSingleText") |
|
116 |
self.horizontalLayout_26.addWidget(self.lineEditSingleText) |
|
117 |
self.verticalLayout_5.addLayout(self.horizontalLayout_26) |
|
118 |
self.horizontalLayout_15 = QtWidgets.QHBoxLayout() |
|
119 |
self.horizontalLayout_15.setObjectName("horizontalLayout_15") |
|
120 |
self.label_20 = QtWidgets.QLabel(self.groupBoxText) |
|
121 |
self.label_20.setObjectName("label_20") |
|
122 |
self.horizontalLayout_15.addWidget(self.label_20) |
|
123 |
self.spinBoxExpandSize = QtWidgets.QSpinBox(self.groupBoxText) |
|
124 |
self.spinBoxExpandSize.setMinimumSize(QtCore.QSize(100, 0)) |
|
125 |
self.spinBoxExpandSize.setObjectName("spinBoxExpandSize") |
|
126 |
self.horizontalLayout_15.addWidget(self.spinBoxExpandSize) |
|
127 |
self.label_21 = QtWidgets.QLabel(self.groupBoxText) |
|
128 |
self.label_21.setObjectName("label_21") |
|
129 |
self.horizontalLayout_15.addWidget(self.label_21) |
|
130 |
self.spinBoxShrinkSize = QtWidgets.QSpinBox(self.groupBoxText) |
|
131 |
self.spinBoxShrinkSize.setMinimumSize(QtCore.QSize(100, 0)) |
|
132 |
self.spinBoxShrinkSize.setObjectName("spinBoxShrinkSize") |
|
133 |
self.horizontalLayout_15.addWidget(self.spinBoxShrinkSize) |
|
134 |
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
135 |
self.horizontalLayout_15.addItem(spacerItem1) |
|
136 |
self.verticalLayout_5.addLayout(self.horizontalLayout_15) |
|
137 |
self.horizontalLayout_13 = QtWidgets.QHBoxLayout() |
|
138 |
self.horizontalLayout_13.setObjectName("horizontalLayout_13") |
|
139 |
self.label_17 = QtWidgets.QLabel(self.groupBoxText) |
|
140 |
self.label_17.setObjectName("label_17") |
|
141 |
self.horizontalLayout_13.addWidget(self.label_17, 0, QtCore.Qt.AlignLeft) |
|
142 |
self.minTextSizeSpinBox = QtWidgets.QSpinBox(self.groupBoxText) |
|
143 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) |
|
144 |
sizePolicy.setHorizontalStretch(0) |
|
145 |
sizePolicy.setVerticalStretch(0) |
|
146 |
sizePolicy.setHeightForWidth(self.minTextSizeSpinBox.sizePolicy().hasHeightForWidth()) |
|
147 |
self.minTextSizeSpinBox.setSizePolicy(sizePolicy) |
|
148 |
self.minTextSizeSpinBox.setMaximumSize(QtCore.QSize(16777215, 16777215)) |
|
149 |
self.minTextSizeSpinBox.setProperty("value", 30) |
|
150 |
self.minTextSizeSpinBox.setObjectName("minTextSizeSpinBox") |
|
151 |
self.horizontalLayout_13.addWidget(self.minTextSizeSpinBox) |
|
152 |
self.label_18 = QtWidgets.QLabel(self.groupBoxText) |
|
153 |
self.label_18.setObjectName("label_18") |
|
154 |
self.horizontalLayout_13.addWidget(self.label_18) |
|
155 |
self.maxTextSizeSpinBox = QtWidgets.QSpinBox(self.groupBoxText) |
|
156 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) |
|
157 |
sizePolicy.setHorizontalStretch(0) |
|
158 |
sizePolicy.setVerticalStretch(0) |
|
159 |
sizePolicy.setHeightForWidth(self.maxTextSizeSpinBox.sizePolicy().hasHeightForWidth()) |
|
160 |
self.maxTextSizeSpinBox.setSizePolicy(sizePolicy) |
|
161 |
self.maxTextSizeSpinBox.setProperty("value", 60) |
|
162 |
self.maxTextSizeSpinBox.setObjectName("maxTextSizeSpinBox") |
|
163 |
self.horizontalLayout_13.addWidget(self.maxTextSizeSpinBox) |
|
164 |
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
165 |
self.horizontalLayout_13.addItem(spacerItem2) |
|
166 |
self.verticalLayout_5.addLayout(self.horizontalLayout_13) |
|
167 |
self.horizontalLayout_17 = QtWidgets.QHBoxLayout() |
|
168 |
self.horizontalLayout_17.setObjectName("horizontalLayout_17") |
|
169 |
self.label_22 = QtWidgets.QLabel(self.groupBoxText) |
|
170 |
self.label_22.setObjectName("label_22") |
|
171 |
self.horizontalLayout_17.addWidget(self.label_22) |
|
172 |
self.spinBoxMergeSize = QtWidgets.QSpinBox(self.groupBoxText) |
|
173 |
self.spinBoxMergeSize.setMinimumSize(QtCore.QSize(100, 0)) |
|
174 |
self.spinBoxMergeSize.setObjectName("spinBoxMergeSize") |
|
175 |
self.horizontalLayout_17.addWidget(self.spinBoxMergeSize) |
|
176 |
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
177 |
self.horizontalLayout_17.addItem(spacerItem3) |
|
178 |
self.verticalLayout_5.addLayout(self.horizontalLayout_17) |
|
179 |
self.gridLayout_14.addLayout(self.verticalLayout_5, 0, 0, 1, 1) |
|
180 |
self.gridLayout_2.addWidget(self.groupBoxText, 0, 1, 1, 1) |
|
30 | 181 |
self.groupBoxAttribute = QtWidgets.QGroupBox(self.Recognition) |
31 | 182 |
self.groupBoxAttribute.setMaximumSize(QtCore.QSize(16777215, 16777215)) |
32 | 183 |
self.groupBoxAttribute.setObjectName("groupBoxAttribute") |
... | ... | |
80 | 231 |
self.verticalLayout_3.addLayout(self.horizontalLayout_12) |
81 | 232 |
self.gridLayout_6.addLayout(self.verticalLayout_3, 0, 0, 1, 1) |
82 | 233 |
self.gridLayout_2.addWidget(self.groupBoxAttribute, 1, 1, 1, 1) |
83 |
self.groupBox = QtWidgets.QGroupBox(self.Recognition) |
|
234 |
self.tabWidget.addTab(self.Recognition, "") |
|
235 |
self.Recognition2 = QtWidgets.QWidget() |
|
236 |
self.Recognition2.setObjectName("Recognition2") |
|
237 |
self.gridLayout_21 = QtWidgets.QGridLayout(self.Recognition2) |
|
238 |
self.gridLayout_21.setObjectName("gridLayout_21") |
|
239 |
self.groupBoxLineNo = QtWidgets.QGroupBox(self.Recognition2) |
|
240 |
self.groupBoxLineNo.setObjectName("groupBoxLineNo") |
|
241 |
self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBoxLineNo) |
|
242 |
self.gridLayout_3.setObjectName("gridLayout_3") |
|
243 |
self.verticalLayout_2 = QtWidgets.QVBoxLayout() |
|
244 |
self.verticalLayout_2.setObjectName("verticalLayout_2") |
|
245 |
self.horizontalLayout_2 = QtWidgets.QHBoxLayout() |
|
246 |
self.horizontalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint) |
|
247 |
self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
|
248 |
self.horizontalLayout_4 = QtWidgets.QHBoxLayout() |
|
249 |
self.horizontalLayout_4.setObjectName("horizontalLayout_4") |
|
250 |
self.horizontalLayout_2.addLayout(self.horizontalLayout_4) |
|
251 |
self.pushButtonLineNoAttribute = QtWidgets.QPushButton(self.groupBoxLineNo) |
|
252 |
self.pushButtonLineNoAttribute.setMinimumSize(QtCore.QSize(50, 24)) |
|
253 |
self.pushButtonLineNoAttribute.setMaximumSize(QtCore.QSize(16777215, 24)) |
|
254 |
self.pushButtonLineNoAttribute.setObjectName("pushButtonLineNoAttribute") |
|
255 |
self.horizontalLayout_2.addWidget(self.pushButtonLineNoAttribute) |
|
256 |
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
257 |
self.horizontalLayout_2.addItem(spacerItem4) |
|
258 |
self.pushButtonAddProperty = QtWidgets.QPushButton(self.groupBoxLineNo) |
|
259 |
self.pushButtonAddProperty.setMinimumSize(QtCore.QSize(50, 0)) |
|
260 |
self.pushButtonAddProperty.setMaximumSize(QtCore.QSize(50, 16777215)) |
|
261 |
self.pushButtonAddProperty.setDefault(False) |
|
262 |
self.pushButtonAddProperty.setObjectName("pushButtonAddProperty") |
|
263 |
self.horizontalLayout_2.addWidget(self.pushButtonAddProperty) |
|
264 |
self.pushButtonDeleteProperty = QtWidgets.QPushButton(self.groupBoxLineNo) |
|
265 |
self.pushButtonDeleteProperty.setMinimumSize(QtCore.QSize(50, 0)) |
|
266 |
self.pushButtonDeleteProperty.setMaximumSize(QtCore.QSize(50, 16777215)) |
|
267 |
self.pushButtonDeleteProperty.setObjectName("pushButtonDeleteProperty") |
|
268 |
self.horizontalLayout_2.addWidget(self.pushButtonDeleteProperty) |
|
269 |
self.verticalLayout_2.addLayout(self.horizontalLayout_2) |
|
270 |
self.horizontalLayout_3 = QtWidgets.QHBoxLayout() |
|
271 |
self.horizontalLayout_3.setObjectName("horizontalLayout_3") |
|
272 |
self.listWidgetLineNo = QtWidgets.QListWidget(self.groupBoxLineNo) |
|
273 |
self.listWidgetLineNo.setObjectName("listWidgetLineNo") |
|
274 |
self.horizontalLayout_3.addWidget(self.listWidgetLineNo) |
|
275 |
self.verticalLayout_2.addLayout(self.horizontalLayout_3) |
|
276 |
self.gridLayout_3.addLayout(self.verticalLayout_2, 6, 0, 1, 1) |
|
277 |
self.gridLayout_21.addWidget(self.groupBoxLineNo, 1, 1, 1, 1) |
|
278 |
self.groupBox = QtWidgets.QGroupBox(self.Recognition2) |
|
84 | 279 |
self.groupBox.setObjectName("groupBox") |
85 | 280 |
self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox) |
86 | 281 |
self.gridLayout_5.setObjectName("gridLayout_5") |
... | ... | |
129 | 324 |
self.label_28 = QtWidgets.QLabel(self.groupBox) |
130 | 325 |
self.label_28.setObjectName("label_28") |
131 | 326 |
self.gridLayout_11.addWidget(self.label_28, 4, 0, 1, 1) |
132 |
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
133 |
self.gridLayout_11.addItem(spacerItem, 0, 4, 1, 1) |
|
327 |
spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
|
328 |
self.gridLayout_11.addItem(spacerItem5, 0, 4, 1, 1)
|
|
134 | 329 |
self.spinBoxMaxArea = QtWidgets.QSpinBox(self.groupBox) |
135 | 330 |
self.spinBoxMaxArea.setMinimumSize(QtCore.QSize(100, 0)) |
136 | 331 |
self.spinBoxMaxArea.setObjectName("spinBoxMaxArea") |
... | ... | |
149 | 344 |
self.buttonGroup_3.addButton(self.radioButtonDiagonalNo) |
150 | 345 |
self.gridLayout_11.addWidget(self.radioButtonDiagonalNo, 5, 2, 1, 1) |
151 | 346 |
self.gridLayout_5.addLayout(self.gridLayout_11, 0, 0, 1, 1) |
152 |
self.gridLayout_2.addWidget(self.groupBox, 3, 1, 1, 1) |
|
153 |
self.groupBoxLineNo = QtWidgets.QGroupBox(self.Recognition) |
|
154 |
self.groupBoxLineNo.setObjectName("groupBoxLineNo") |
|
155 |
self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBoxLineNo) |
|
156 |
self.gridLayout_3.setObjectName("gridLayout_3") |
|
157 |
self.verticalLayout_2 = QtWidgets.QVBoxLayout() |
|
158 |
self.verticalLayout_2.setObjectName("verticalLayout_2") |
|
159 |
self.horizontalLayout_2 = QtWidgets.QHBoxLayout() |
|
160 |
self.horizontalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint) |
|
161 |
self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
|
162 |
self.horizontalLayout_4 = QtWidgets.QHBoxLayout() |
|
163 |
self.horizontalLayout_4.setObjectName("horizontalLayout_4") |
|
164 |
self.horizontalLayout_2.addLayout(self.horizontalLayout_4) |
|
165 |
self.pushButtonLineNoAttribute = QtWidgets.QPushButton(self.groupBoxLineNo) |
|
166 |
self.pushButtonLineNoAttribute.setMinimumSize(QtCore.QSize(50, 24)) |
|
167 |
self.pushButtonLineNoAttribute.setMaximumSize(QtCore.QSize(16777215, 24)) |
|
168 |
self.pushButtonLineNoAttribute.setObjectName("pushButtonLineNoAttribute") |
|
169 |
self.horizontalLayout_2.addWidget(self.pushButtonLineNoAttribute) |
|
170 |
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
171 |
self.horizontalLayout_2.addItem(spacerItem1) |
|
172 |
self.pushButtonAddProperty = QtWidgets.QPushButton(self.groupBoxLineNo) |
|
173 |
self.pushButtonAddProperty.setMinimumSize(QtCore.QSize(50, 0)) |
|
174 |
self.pushButtonAddProperty.setMaximumSize(QtCore.QSize(50, 16777215)) |
|
175 |
self.pushButtonAddProperty.setDefault(False) |
|
176 |
self.pushButtonAddProperty.setObjectName("pushButtonAddProperty") |
|
177 |
self.horizontalLayout_2.addWidget(self.pushButtonAddProperty) |
|
178 |
self.pushButtonDeleteProperty = QtWidgets.QPushButton(self.groupBoxLineNo) |
|
179 |
self.pushButtonDeleteProperty.setMinimumSize(QtCore.QSize(50, 0)) |
|
180 |
self.pushButtonDeleteProperty.setMaximumSize(QtCore.QSize(50, 16777215)) |
|
181 |
self.pushButtonDeleteProperty.setObjectName("pushButtonDeleteProperty") |
|
182 |
self.horizontalLayout_2.addWidget(self.pushButtonDeleteProperty) |
|
183 |
self.verticalLayout_2.addLayout(self.horizontalLayout_2) |
|
184 |
self.horizontalLayout_3 = QtWidgets.QHBoxLayout() |
|
185 |
self.horizontalLayout_3.setObjectName("horizontalLayout_3") |
|
186 |
self.listWidgetLineNo = QtWidgets.QListWidget(self.groupBoxLineNo) |
|
187 |
self.listWidgetLineNo.setObjectName("listWidgetLineNo") |
|
188 |
self.horizontalLayout_3.addWidget(self.listWidgetLineNo) |
|
189 |
self.verticalLayout_2.addLayout(self.horizontalLayout_3) |
|
190 |
self.gridLayout_3.addLayout(self.verticalLayout_2, 6, 0, 1, 1) |
|
191 |
self.gridLayout_2.addWidget(self.groupBoxLineNo, 4, 1, 1, 1) |
|
192 |
self.groupBoxText = QtWidgets.QGroupBox(self.Recognition) |
|
193 |
self.groupBoxText.setObjectName("groupBoxText") |
|
194 |
self.gridLayout_14 = QtWidgets.QGridLayout(self.groupBoxText) |
|
195 |
self.gridLayout_14.setObjectName("gridLayout_14") |
|
196 |
self.verticalLayout_5 = QtWidgets.QVBoxLayout() |
|
197 |
self.verticalLayout_5.setObjectName("verticalLayout_5") |
|
198 |
self.horizontalLayout_14 = QtWidgets.QHBoxLayout() |
|
199 |
self.horizontalLayout_14.setObjectName("horizontalLayout_14") |
|
200 |
self.label_19 = QtWidgets.QLabel(self.groupBoxText) |
|
201 |
self.label_19.setObjectName("label_19") |
|
202 |
self.horizontalLayout_14.addWidget(self.label_19) |
|
203 |
self.comboBoxOCRData = QtWidgets.QComboBox(self.groupBoxText) |
|
204 |
self.comboBoxOCRData.setMinimumSize(QtCore.QSize(200, 0)) |
|
205 |
self.comboBoxOCRData.setMaximumSize(QtCore.QSize(200, 16777215)) |
|
206 |
self.comboBoxOCRData.setObjectName("comboBoxOCRData") |
|
207 |
self.horizontalLayout_14.addWidget(self.comboBoxOCRData) |
|
208 |
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
209 |
self.horizontalLayout_14.addItem(spacerItem2) |
|
210 |
self.verticalLayout_5.addLayout(self.horizontalLayout_14) |
|
211 |
self.horizontalLayout_11 = QtWidgets.QHBoxLayout() |
|
212 |
self.horizontalLayout_11.setObjectName("horizontalLayout_11") |
|
213 |
self.label_7 = QtWidgets.QLabel(self.groupBoxText) |
|
214 |
self.label_7.setObjectName("label_7") |
|
215 |
self.horizontalLayout_11.addWidget(self.label_7) |
|
216 |
self.lineEditWhiteCharList = QtWidgets.QLineEdit(self.groupBoxText) |
|
217 |
self.lineEditWhiteCharList.setObjectName("lineEditWhiteCharList") |
|
218 |
self.horizontalLayout_11.addWidget(self.lineEditWhiteCharList) |
|
219 |
self.verticalLayout_5.addLayout(self.horizontalLayout_11) |
|
220 |
self.horizontalLayout_15 = QtWidgets.QHBoxLayout() |
|
221 |
self.horizontalLayout_15.setObjectName("horizontalLayout_15") |
|
222 |
self.label_20 = QtWidgets.QLabel(self.groupBoxText) |
|
223 |
self.label_20.setObjectName("label_20") |
|
224 |
self.horizontalLayout_15.addWidget(self.label_20) |
|
225 |
self.spinBoxExpandSize = QtWidgets.QSpinBox(self.groupBoxText) |
|
226 |
self.spinBoxExpandSize.setMinimumSize(QtCore.QSize(100, 0)) |
|
227 |
self.spinBoxExpandSize.setObjectName("spinBoxExpandSize") |
|
228 |
self.horizontalLayout_15.addWidget(self.spinBoxExpandSize) |
|
229 |
self.label_21 = QtWidgets.QLabel(self.groupBoxText) |
|
230 |
self.label_21.setObjectName("label_21") |
|
231 |
self.horizontalLayout_15.addWidget(self.label_21) |
|
232 |
self.spinBoxShrinkSize = QtWidgets.QSpinBox(self.groupBoxText) |
|
233 |
self.spinBoxShrinkSize.setMinimumSize(QtCore.QSize(100, 0)) |
|
234 |
self.spinBoxShrinkSize.setObjectName("spinBoxShrinkSize") |
|
235 |
self.horizontalLayout_15.addWidget(self.spinBoxShrinkSize) |
|
236 |
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
237 |
self.horizontalLayout_15.addItem(spacerItem3) |
|
238 |
self.verticalLayout_5.addLayout(self.horizontalLayout_15) |
|
239 |
self.horizontalLayout_13 = QtWidgets.QHBoxLayout() |
|
240 |
self.horizontalLayout_13.setObjectName("horizontalLayout_13") |
|
241 |
self.label_17 = QtWidgets.QLabel(self.groupBoxText) |
|
242 |
self.label_17.setObjectName("label_17") |
|
243 |
self.horizontalLayout_13.addWidget(self.label_17, 0, QtCore.Qt.AlignLeft) |
|
244 |
self.minTextSizeSpinBox = QtWidgets.QSpinBox(self.groupBoxText) |
|
245 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) |
|
246 |
sizePolicy.setHorizontalStretch(0) |
|
247 |
sizePolicy.setVerticalStretch(0) |
|
248 |
sizePolicy.setHeightForWidth(self.minTextSizeSpinBox.sizePolicy().hasHeightForWidth()) |
|
249 |
self.minTextSizeSpinBox.setSizePolicy(sizePolicy) |
|
250 |
self.minTextSizeSpinBox.setMaximumSize(QtCore.QSize(16777215, 16777215)) |
|
251 |
self.minTextSizeSpinBox.setProperty("value", 30) |
|
252 |
self.minTextSizeSpinBox.setObjectName("minTextSizeSpinBox") |
|
253 |
self.horizontalLayout_13.addWidget(self.minTextSizeSpinBox) |
|
254 |
self.label_18 = QtWidgets.QLabel(self.groupBoxText) |
|
255 |
self.label_18.setObjectName("label_18") |
|
256 |
self.horizontalLayout_13.addWidget(self.label_18) |
|
257 |
self.maxTextSizeSpinBox = QtWidgets.QSpinBox(self.groupBoxText) |
|
258 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) |
|
259 |
sizePolicy.setHorizontalStretch(0) |
|
260 |
sizePolicy.setVerticalStretch(0) |
|
261 |
sizePolicy.setHeightForWidth(self.maxTextSizeSpinBox.sizePolicy().hasHeightForWidth()) |
|
262 |
self.maxTextSizeSpinBox.setSizePolicy(sizePolicy) |
|
263 |
self.maxTextSizeSpinBox.setProperty("value", 60) |
|
264 |
self.maxTextSizeSpinBox.setObjectName("maxTextSizeSpinBox") |
|
265 |
self.horizontalLayout_13.addWidget(self.maxTextSizeSpinBox) |
|
266 |
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
267 |
self.horizontalLayout_13.addItem(spacerItem4) |
|
268 |
self.verticalLayout_5.addLayout(self.horizontalLayout_13) |
|
269 |
self.horizontalLayout_17 = QtWidgets.QHBoxLayout() |
|
270 |
self.horizontalLayout_17.setObjectName("horizontalLayout_17") |
|
271 |
self.label_22 = QtWidgets.QLabel(self.groupBoxText) |
|
272 |
self.label_22.setObjectName("label_22") |
|
273 |
self.horizontalLayout_17.addWidget(self.label_22) |
|
274 |
self.spinBoxMergeSize = QtWidgets.QSpinBox(self.groupBoxText) |
|
275 |
self.spinBoxMergeSize.setMinimumSize(QtCore.QSize(100, 0)) |
|
276 |
self.spinBoxMergeSize.setObjectName("spinBoxMergeSize") |
|
277 |
self.horizontalLayout_17.addWidget(self.spinBoxMergeSize) |
|
278 |
spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
279 |
self.horizontalLayout_17.addItem(spacerItem5) |
|
280 |
self.verticalLayout_5.addLayout(self.horizontalLayout_17) |
|
281 |
self.gridLayout_14.addLayout(self.verticalLayout_5, 0, 0, 1, 1) |
|
282 |
self.gridLayout_2.addWidget(self.groupBoxText, 0, 1, 1, 1) |
|
283 |
self.groupBoxFilter = QtWidgets.QGroupBox(self.Recognition) |
|
284 |
self.groupBoxFilter.setObjectName("groupBoxFilter") |
|
285 |
self.gridLayout_8 = QtWidgets.QGridLayout(self.groupBoxFilter) |
|
286 |
self.gridLayout_8.setObjectName("gridLayout_8") |
|
287 |
self.verticalLayout_9 = QtWidgets.QVBoxLayout() |
|
288 |
self.verticalLayout_9.setObjectName("verticalLayout_9") |
|
289 |
self.horizontalLayout_16 = QtWidgets.QHBoxLayout() |
|
290 |
self.horizontalLayout_16.setObjectName("horizontalLayout_16") |
|
291 |
self.label_10 = QtWidgets.QLabel(self.groupBoxFilter) |
|
292 |
self.label_10.setMaximumSize(QtCore.QSize(230, 16777215)) |
|
293 |
self.label_10.setObjectName("label_10") |
|
294 |
self.horizontalLayout_16.addWidget(self.label_10, 0, QtCore.Qt.AlignVCenter) |
|
295 |
self.spinBoxMinimumSize = QtWidgets.QSpinBox(self.groupBoxFilter) |
|
296 |
self.spinBoxMinimumSize.setObjectName("spinBoxMinimumSize") |
|
297 |
self.horizontalLayout_16.addWidget(self.spinBoxMinimumSize) |
|
298 |
self.verticalLayout_9.addLayout(self.horizontalLayout_16) |
|
299 |
self.horizontalLayout_20 = QtWidgets.QHBoxLayout() |
|
300 |
self.horizontalLayout_20.setObjectName("horizontalLayout_20") |
|
301 |
self.label_33 = QtWidgets.QLabel(self.groupBoxFilter) |
|
302 |
self.label_33.setMinimumSize(QtCore.QSize(230, 0)) |
|
303 |
self.label_33.setMaximumSize(QtCore.QSize(230, 16777215)) |
|
304 |
self.label_33.setObjectName("label_33") |
|
305 |
self.horizontalLayout_20.addWidget(self.label_33) |
|
306 |
self.spinBoxUnrecognitionIgnoreStep = QtWidgets.QSpinBox(self.groupBoxFilter) |
|
307 |
self.spinBoxUnrecognitionIgnoreStep.setMaximum(10) |
|
308 |
self.spinBoxUnrecognitionIgnoreStep.setObjectName("spinBoxUnrecognitionIgnoreStep") |
|
309 |
self.horizontalLayout_20.addWidget(self.spinBoxUnrecognitionIgnoreStep) |
|
310 |
self.verticalLayout_9.addLayout(self.horizontalLayout_20) |
|
311 |
self.horizontalLayout_6 = QtWidgets.QHBoxLayout() |
|
312 |
self.horizontalLayout_6.setObjectName("horizontalLayout_6") |
|
313 |
self.label_29 = QtWidgets.QLabel(self.groupBoxFilter) |
|
314 |
self.label_29.setMaximumSize(QtCore.QSize(230, 16777215)) |
|
315 |
self.label_29.setObjectName("label_29") |
|
316 |
self.horizontalLayout_6.addWidget(self.label_29) |
|
317 |
self.spinBoxDilateSize = QtWidgets.QSpinBox(self.groupBoxFilter) |
|
318 |
self.spinBoxDilateSize.setMaximum(10) |
|
319 |
self.spinBoxDilateSize.setObjectName("spinBoxDilateSize") |
|
320 |
self.horizontalLayout_6.addWidget(self.spinBoxDilateSize) |
|
321 |
self.verticalLayout_9.addLayout(self.horizontalLayout_6) |
|
322 |
self.horizontalLayout_10 = QtWidgets.QHBoxLayout() |
|
323 |
self.horizontalLayout_10.setObjectName("horizontalLayout_10") |
|
324 |
self.label_32 = QtWidgets.QLabel(self.groupBoxFilter) |
|
325 |
self.label_32.setMaximumSize(QtCore.QSize(230, 16777215)) |
|
326 |
self.label_32.setObjectName("label_32") |
|
327 |
self.horizontalLayout_10.addWidget(self.label_32) |
|
328 |
self.spinBoxFlatSize = QtWidgets.QSpinBox(self.groupBoxFilter) |
|
329 |
self.spinBoxFlatSize.setObjectName("spinBoxFlatSize") |
|
330 |
self.horizontalLayout_10.addWidget(self.spinBoxFlatSize) |
|
331 |
self.verticalLayout_9.addLayout(self.horizontalLayout_10) |
|
332 |
self.gridLayout_8.addLayout(self.verticalLayout_9, 0, 0, 1, 1) |
|
333 |
self.gridLayout_2.addWidget(self.groupBoxFilter, 2, 1, 1, 1) |
|
334 |
self.tabWidget.addTab(self.Recognition, "") |
|
347 |
self.gridLayout_21.addWidget(self.groupBox, 0, 1, 1, 1) |
|
348 |
self.tabWidget.addTab(self.Recognition2, "") |
|
335 | 349 |
self.tabTagNoRule = QtWidgets.QWidget() |
336 | 350 |
self.tabTagNoRule.setObjectName("tabTagNoRule") |
337 | 351 |
self.gridLayout_7 = QtWidgets.QGridLayout(self.tabTagNoRule) |
... | ... | |
656 | 670 |
self.buttonBox.accepted.connect(ConfigurationDialog.accept) |
657 | 671 |
self.buttonBox.rejected.connect(ConfigurationDialog.reject) |
658 | 672 |
QtCore.QMetaObject.connectSlotsByName(ConfigurationDialog) |
659 |
ConfigurationDialog.setTabOrder(self.spinBoxExpandSize, self.minTextSizeSpinBox) |
|
660 |
ConfigurationDialog.setTabOrder(self.minTextSizeSpinBox, self.maxTextSizeSpinBox) |
|
661 |
ConfigurationDialog.setTabOrder(self.maxTextSizeSpinBox, self.spinBoxMergeSize) |
|
662 |
ConfigurationDialog.setTabOrder(self.spinBoxMergeSize, self.lineEditSizeDelimiter) |
|
663 |
ConfigurationDialog.setTabOrder(self.lineEditSizeDelimiter, self.pushButtonAddProperty) |
|
664 | 673 |
ConfigurationDialog.setTabOrder(self.pushButtonAddProperty, self.lineEdit_2) |
665 | 674 |
ConfigurationDialog.setTabOrder(self.lineEdit_2, self.tableWidgetLineTypes) |
666 | 675 |
ConfigurationDialog.setTabOrder(self.tableWidgetLineTypes, self.fontComboBox) |
... | ... | |
676 | 685 |
def retranslateUi(self, ConfigurationDialog): |
677 | 686 |
_translate = QtCore.QCoreApplication.translate |
678 | 687 |
ConfigurationDialog.setWindowTitle(_translate("ConfigurationDialog", "Configuration")) |
688 |
self.groupBoxFilter.setTitle(_translate("ConfigurationDialog", "Filter")) |
|
689 |
self.label_10.setText(_translate("ConfigurationDialog", "Minimum Detection Size : ")) |
|
690 |
self.label_33.setText(_translate("ConfigurationDialog", "Unrecognition Ignore Step : ")) |
|
691 |
self.label_29.setText(_translate("ConfigurationDialog", "Drawing Thickness Reinforcement Step : ")) |
|
692 |
self.label_32.setText(_translate("ConfigurationDialog", "Drawing Flattening Step : ")) |
|
693 |
self.groupBoxText.setTitle(_translate("ConfigurationDialog", "Text Detection")) |
|
694 |
self.label_19.setText(_translate("ConfigurationDialog", "OCR Source : ")) |
|
695 |
self.label_7.setText(_translate("ConfigurationDialog", "Detected string : ")) |
|
696 |
self.label_37.setText(_translate("ConfigurationDialog", "Allowed Single Text : ")) |
|
697 |
self.label_20.setText(_translate("ConfigurationDialog", "Expansion Size : ")) |
|
698 |
self.label_21.setText(_translate("ConfigurationDialog", "Erosion Size : ")) |
|
699 |
self.label_17.setText(_translate("ConfigurationDialog", "Minimum Text Size : ")) |
|
700 |
self.label_18.setText(_translate("ConfigurationDialog", "Maximum Text Size : ")) |
|
701 |
self.label_22.setText(_translate("ConfigurationDialog", "Merge Size : ")) |
|
679 | 702 |
self.groupBoxAttribute.setTitle(_translate("ConfigurationDialog", "Attribute")) |
680 | 703 |
self.label_6.setText(_translate("ConfigurationDialog", "Size Delimiter : ")) |
681 | 704 |
self.label_15.setText(_translate("ConfigurationDialog", "Attribute Detection Range(Ratio) : ")) |
682 | 705 |
self.label_24.setText(_translate("ConfigurationDialog", "Line Flow Mark Position(Percent) : ")) |
683 | 706 |
self.label_26.setText(_translate("ConfigurationDialog", "Line Flow Mark Minimum Line Length : ")) |
707 |
self.tabWidget.setTabText(self.tabWidget.indexOf(self.Recognition), _translate("ConfigurationDialog", "Recognition")) |
|
708 |
self.groupBoxLineNo.setTitle(_translate("ConfigurationDialog", "Line No")) |
|
709 |
self.pushButtonLineNoAttribute.setText(_translate("ConfigurationDialog", "Line No Attribute")) |
|
710 |
self.pushButtonAddProperty.setText(_translate("ConfigurationDialog", "Add")) |
|
711 |
self.pushButtonDeleteProperty.setText(_translate("ConfigurationDialog", "Delete")) |
|
684 | 712 |
self.groupBox.setTitle(_translate("ConfigurationDialog", "Line Detection")) |
685 | 713 |
self.label_4.setText(_translate("ConfigurationDialog", "Ignore Small Object Size : ")) |
686 | 714 |
self.label_16.setText(_translate("ConfigurationDialog", "Line Minimum Length : ")) |
... | ... | |
691 | 719 |
self.label_35.setText(_translate("ConfigurationDialog", "Diagonal Detection : ")) |
692 | 720 |
self.radioButtonDiagonalYes.setText(_translate("ConfigurationDialog", "Yes")) |
693 | 721 |
self.radioButtonDiagonalNo.setText(_translate("ConfigurationDialog", "No")) |
694 |
self.groupBoxLineNo.setTitle(_translate("ConfigurationDialog", "Line No")) |
|
695 |
self.pushButtonLineNoAttribute.setText(_translate("ConfigurationDialog", "Line No Attribute")) |
|
696 |
self.pushButtonAddProperty.setText(_translate("ConfigurationDialog", "Add")) |
|
697 |
self.pushButtonDeleteProperty.setText(_translate("ConfigurationDialog", "Delete")) |
|
698 |
self.groupBoxText.setTitle(_translate("ConfigurationDialog", "Text Detection")) |
|
699 |
self.label_19.setText(_translate("ConfigurationDialog", "OCR Source : ")) |
|
700 |
self.label_7.setText(_translate("ConfigurationDialog", "Detected string : ")) |
|
701 |
self.label_20.setText(_translate("ConfigurationDialog", "Expansion Size : ")) |
|
702 |
self.label_21.setText(_translate("ConfigurationDialog", "Erosion Size : ")) |
|
703 |
self.label_17.setText(_translate("ConfigurationDialog", "Minimum Text Size : ")) |
|
704 |
self.label_18.setText(_translate("ConfigurationDialog", "Maximum Text Size : ")) |
|
705 |
self.label_22.setText(_translate("ConfigurationDialog", "Merge Size : ")) |
|
706 |
self.groupBoxFilter.setTitle(_translate("ConfigurationDialog", "Filter")) |
|
707 |
self.label_10.setText(_translate("ConfigurationDialog", "Minimum Detection Size : ")) |
|
708 |
self.label_33.setText(_translate("ConfigurationDialog", "Unrecognition Ignore Step : ")) |
|
709 |
self.label_29.setText(_translate("ConfigurationDialog", "Drawing Thickness Reinforcement Step : ")) |
|
710 |
self.label_32.setText(_translate("ConfigurationDialog", "Drawing Flattening Step : ")) |
|
711 |
self.tabWidget.setTabText(self.tabWidget.indexOf(self.Recognition), _translate("ConfigurationDialog", "Recognition")) |
|
722 |
self.tabWidget.setTabText(self.tabWidget.indexOf(self.Recognition2), _translate("ConfigurationDialog", "Recognition")) |
|
712 | 723 |
self.groupBox_4.setTitle(_translate("ConfigurationDialog", "Note No Tag Rule")) |
713 | 724 |
self.checkBoxNoteNoSymbolName.setText(_translate("ConfigurationDialog", "Note No Symbol Name : ")) |
714 | 725 |
self.label_8.setText(_translate("ConfigurationDialog", "Note No Expression : ")) |
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
1947 | 1947 |
app_doc_data.tracerLineNos.pop(app_doc_data.tracerLineNos.index(item)) |
1948 | 1948 |
|
1949 | 1949 |
if type(item) is QEngineeringLineItem: |
1950 |
app_doc_data.lines.remove(item) |
|
1950 |
if item in app_doc_data.lines: |
|
1951 |
app_doc_data.lines.remove(item) |
|
1951 | 1952 |
|
1952 | 1953 |
matches = [_item for _item in self.graphicsView.scene.items() if type(_item) is QEngineeringLineNoTextItem] |
1953 | 1954 |
matches.extend([lineNo for lineNo in app_doc_data.tracerLineNos if |
DTI_PID/DTI_PID/TextDetector.py | ||
---|---|---|
315 | 315 |
self.textInfoList.extend(data) |
316 | 316 |
pool.shutdown(wait=True) |
317 | 317 |
|
318 |
# remove text item has only 1 character |
|
319 |
# for index in range(len(self.textInfoList) - 1, -1, -1): |
|
320 |
# if len(self.textInfoList[index].getText()) is 1: |
|
321 |
# self.textInfoList.pop(index) |
|
318 |
# remove text item has only 1 character except allowed |
|
319 |
configs = appDocData.getConfigs('Text Recognition', 'White Single Text') |
|
320 |
if configs: |
|
321 |
allowed_text = configs[0].value.split(',') |
|
322 |
for index in range(len(self.textInfoList) - 1, -1, -1): |
|
323 |
text = self.textInfoList[index].getText() |
|
324 |
if len(text) is 1 and text not in allowed_text: |
|
325 |
self.textInfoList.pop(index) |
|
322 | 326 |
|
323 | 327 |
if onlyTextArea: |
324 | 328 |
return |
DTI_PID/DTI_PID/UI/Configuration.ui | ||
---|---|---|
7 | 7 |
<x>0</x> |
8 | 8 |
<y>0</y> |
9 | 9 |
<width>704</width> |
10 |
<height>997</height>
|
|
10 |
<height>871</height>
|
|
11 | 11 |
</rect> |
12 | 12 |
</property> |
13 | 13 |
<property name="font"> |
... | ... | |
36 | 36 |
<string>Recognition</string> |
37 | 37 |
</attribute> |
38 | 38 |
<layout class="QGridLayout" name="gridLayout_2"> |
39 |
<item row="1" column="1"> |
|
40 |
<widget class="QGroupBox" name="groupBoxAttribute"> |
|
41 |
<property name="maximumSize"> |
|
42 |
<size> |
|
43 |
<width>16777215</width> |
|
44 |
<height>16777215</height> |
|
45 |
</size> |
|
46 |
</property> |
|
39 |
<item row="2" column="1"> |
|
40 |
<widget class="QGroupBox" name="groupBoxFilter"> |
|
47 | 41 |
<property name="title"> |
48 |
<string>Attribute</string>
|
|
42 |
<string>Filter</string>
|
|
49 | 43 |
</property> |
50 |
<layout class="QGridLayout" name="gridLayout_6">
|
|
44 |
<layout class="QGridLayout" name="gridLayout_8">
|
|
51 | 45 |
<item row="0" column="0"> |
52 |
<layout class="QVBoxLayout" name="verticalLayout_3">
|
|
46 |
<layout class="QVBoxLayout" name="verticalLayout_9">
|
|
53 | 47 |
<item> |
54 |
<layout class="QHBoxLayout" name="horizontalLayout_8"> |
|
55 |
<item alignment="Qt::AlignVCenter"> |
|
56 |
<widget class="QLabel" name="label_6"> |
|
57 |
<property name="text"> |
|
58 |
<string>Size Delimiter : </string> |
|
59 |
</property> |
|
60 |
</widget> |
|
61 |
</item> |
|
48 |
<layout class="QHBoxLayout" name="horizontalLayout_16"> |
|
62 | 49 |
<item alignment="Qt::AlignVCenter"> |
63 |
<widget class="QLineEdit" name="lineEditSizeDelimiter"/> |
|
64 |
</item> |
|
65 |
</layout> |
|
66 |
</item> |
|
67 |
<item> |
|
68 |
<layout class="QHBoxLayout" name="horizontalLayout"> |
|
69 |
<item> |
|
70 |
<widget class="QLabel" name="label_15"> |
|
71 |
<property name="maximumSize"> |
|
72 |
<size> |
|
73 |
<width>190</width> |
|
74 |
<height>16777215</height> |
|
75 |
</size> |
|
76 |
</property> |
|
77 |
<property name="text"> |
|
78 |
<string>Attribute Detection Range(Ratio) : </string> |
|
79 |
</property> |
|
80 |
</widget> |
|
81 |
</item> |
|
82 |
<item> |
|
83 |
<widget class="QDoubleSpinBox" name="doubleSpinBoxDetectionRange"> |
|
84 |
<property name="singleStep"> |
|
85 |
<double>0.100000000000000</double> |
|
86 |
</property> |
|
87 |
<property name="value"> |
|
88 |
<double>1.000000000000000</double> |
|
89 |
</property> |
|
90 |
</widget> |
|
91 |
</item> |
|
92 |
</layout> |
|
93 |
</item> |
|
94 |
<item> |
|
95 |
<layout class="QHBoxLayout" name="horizontalLayout_5"> |
|
96 |
<item> |
|
97 |
<widget class="QLabel" name="label_24"> |
|
98 |
<property name="maximumSize"> |
|
99 |
<size> |
|
100 |
<width>190</width> |
|
101 |
<height>16777215</height> |
|
102 |
</size> |
|
103 |
</property> |
|
104 |
<property name="text"> |
|
105 |
<string>Line Flow Mark Position(Percent) : </string> |
|
106 |
</property> |
|
107 |
</widget> |
|
108 |
</item> |
|
109 |
<item> |
|
110 |
<widget class="QSpinBox" name="spinBoxFlowMarkPosition"> |
|
111 |
<property name="maximum"> |
|
112 |
<number>100</number> |
|
113 |
</property> |
|
114 |
</widget> |
|
115 |
</item> |
|
116 |
</layout> |
|
117 |
</item> |
|
118 |
<item> |
|
119 |
<layout class="QHBoxLayout" name="horizontalLayout_12"> |
|
120 |
<item> |
|
121 |
<widget class="QLabel" name="label_26"> |
|
50 |
<widget class="QLabel" name="label_10"> |
|
122 | 51 |
<property name="maximumSize"> |
123 | 52 |
<size> |
124 |
<width>220</width>
|
|
53 |
<width>230</width>
|
|
125 | 54 |
<height>16777215</height> |
126 | 55 |
</size> |
127 | 56 |
</property> |
128 | 57 |
<property name="text"> |
129 |
<string>Line Flow Mark Minimum Line Length : </string> |
|
130 |
</property> |
|
131 |
</widget> |
|
132 |
</item> |
|
133 |
<item> |
|
134 |
<widget class="QSpinBox" name="spinBoxFlowMarkLength"> |
|
135 |
<property name="minimum"> |
|
136 |
<number>1</number> |
|
137 |
</property> |
|
138 |
<property name="maximum"> |
|
139 |
<number>99999</number> |
|
140 |
</property> |
|
141 |
</widget> |
|
142 |
</item> |
|
143 |
</layout> |
|
144 |
</item> |
|
145 |
</layout> |
|
146 |
</item> |
|
147 |
</layout> |
|
148 |
</widget> |
|
149 |
</item> |
|
150 |
<item row="3" column="1"> |
|
151 |
<widget class="QGroupBox" name="groupBox"> |
|
152 |
<property name="title"> |
|
153 |
<string>Line Detection</string> |
|
154 |
</property> |
|
155 |
<layout class="QGridLayout" name="gridLayout_5"> |
|
156 |
<item row="0" column="0"> |
|
157 |
<layout class="QGridLayout" name="gridLayout_11"> |
|
158 |
<item row="3" column="1"> |
|
159 |
<widget class="QSpinBox" name="spinBoxLengthToConnectLine"> |
|
160 |
<property name="value"> |
|
161 |
<number>20</number> |
|
162 |
</property> |
|
163 |
</widget> |
|
164 |
</item> |
|
165 |
<item row="0" column="1"> |
|
166 |
<widget class="QSpinBox" name="spinBoxMinArea"> |
|
167 |
<property name="minimumSize"> |
|
168 |
<size> |
|
169 |
<width>100</width> |
|
170 |
<height>0</height> |
|
171 |
</size> |
|
172 |
</property> |
|
173 |
</widget> |
|
174 |
</item> |
|
175 |
<item row="2" column="1"> |
|
176 |
<widget class="QSpinBox" name="smallLineMinLengthSpinBox"> |
|
177 |
<property name="minimumSize"> |
|
178 |
<size> |
|
179 |
<width>100</width> |
|
180 |
<height>0</height> |
|
181 |
</size> |
|
182 |
</property> |
|
183 |
</widget> |
|
184 |
</item> |
|
185 |
<item row="4" column="1" colspan="2"> |
|
186 |
<widget class="QComboBox" name="comboBoxLineType"/> |
|
187 |
</item> |
|
188 |
<item row="1" column="1"> |
|
189 |
<widget class="QSpinBox" name="spinBoxWidth"> |
|
190 |
<property name="minimumSize"> |
|
191 |
<size> |
|
192 |
<width>100</width> |
|
193 |
<height>0</height> |
|
194 |
</size> |
|
195 |
</property> |
|
196 |
</widget> |
|
197 |
</item> |
|
198 |
<item row="0" column="0"> |
|
199 |
<widget class="QLabel" name="label_4"> |
|
200 |
<property name="text"> |
|
201 |
<string>Ignore Small Object Size : </string> |
|
202 |
</property> |
|
203 |
</widget> |
|
204 |
</item> |
|
205 |
<item row="2" column="0"> |
|
206 |
<widget class="QLabel" name="label_16"> |
|
207 |
<property name="text"> |
|
208 |
<string>Line Minimum Length : </string> |
|
209 |
</property> |
|
210 |
</widget> |
|
211 |
</item> |
|
212 |
<item row="3" column="0"> |
|
213 |
<widget class="QLabel" name="label_9"> |
|
214 |
<property name="text"> |
|
215 |
<string>Length to Connect Line : </string> |
|
216 |
</property> |
|
217 |
</widget> |
|
218 |
</item> |
|
219 |
<item row="1" column="0"> |
|
220 |
<widget class="QLabel" name="label"> |
|
221 |
<property name="text"> |
|
222 |
<string>Sliding Window Size(WxH) : </string> |
|
223 |
</property> |
|
224 |
<property name="alignment"> |
|
225 |
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> |
|
226 |
</property> |
|
227 |
</widget> |
|
228 |
</item> |
|
229 |
<item row="0" column="2"> |
|
230 |
<widget class="QLabel" name="label_5"> |
|
231 |
<property name="text"> |
|
232 |
<string>< Area < </string> |
|
233 |
</property> |
|
234 |
<property name="alignment"> |
|
235 |
<set>Qt::AlignCenter</set> |
|
236 |
</property> |
|
237 |
</widget> |
|
238 |
</item> |
|
239 |
<item row="1" column="2"> |
|
240 |
<widget class="QSpinBox" name="spinBoxHeight"> |
|
241 |
<property name="minimumSize"> |
|
242 |
<size> |
|
243 |
<width>100</width> |
|
244 |
<height>0</height> |
|
245 |
</size> |
|
246 |
</property> |
|
247 |
</widget> |
|
248 |
</item> |
|
249 |
<item row="4" column="0"> |
|
250 |
<widget class="QLabel" name="label_28"> |
|
251 |
<property name="text"> |
|
252 |
<string>Default Line Type : </string> |
|
253 |
</property> |
|
254 |
</widget> |
|
255 |
</item> |
|
256 |
<item row="0" column="4"> |
|
257 |
<spacer name="horizontalSpacer_2"> |
|
258 |
<property name="orientation"> |
|
259 |
<enum>Qt::Horizontal</enum> |
|
260 |
</property> |
|
261 |
<property name="sizeHint" stdset="0"> |
|
262 |
<size> |
|
263 |
<width>40</width> |
|
264 |
<height>20</height> |
|
265 |
</size> |
|
266 |
</property> |
|
267 |
</spacer> |
|
268 |
</item> |
|
269 |
<item row="0" column="3"> |
|
270 |
<widget class="QSpinBox" name="spinBoxMaxArea"> |
|
271 |
<property name="minimumSize"> |
|
272 |
<size> |
|
273 |
<width>100</width> |
|
274 |
<height>0</height> |
|
275 |
</size> |
|
276 |
</property> |
|
277 |
</widget> |
|
278 |
</item> |
|
279 |
<item row="5" column="0"> |
|
280 |
<widget class="QLabel" name="label_35"> |
|
281 |
<property name="text"> |
|
282 |
<string>Diagonal Detection : </string> |
|
283 |
</property> |
|
284 |
</widget> |
|
285 |
</item> |
|
286 |
<item row="5" column="1"> |
|
287 |
<widget class="QRadioButton" name="radioButtonDiagonalYes"> |
|
288 |
<property name="text"> |
|
289 |
<string>Yes</string> |
|
290 |
</property> |
|
291 |
<attribute name="buttonGroup"> |
|
292 |
<string notr="true">buttonGroup_3</string> |
|
293 |
</attribute> |
|
294 |
</widget> |
|
295 |
</item> |
|
296 |
<item row="5" column="2"> |
|
297 |
<widget class="QRadioButton" name="radioButtonDiagonalNo"> |
|
298 |
<property name="text"> |
|
299 |
<string>No</string> |
|
300 |
</property> |
|
301 |
<attribute name="buttonGroup"> |
|
302 |
<string notr="true">buttonGroup_3</string> |
|
303 |
</attribute> |
|
304 |
</widget> |
|
305 |
</item> |
|
306 |
</layout> |
|
307 |
</item> |
|
308 |
</layout> |
|
309 |
</widget> |
|
310 |
</item> |
|
311 |
<item row="4" column="1"> |
|
312 |
<widget class="QGroupBox" name="groupBoxLineNo"> |
|
313 |
<property name="title"> |
|
314 |
<string>Line No</string> |
|
315 |
</property> |
|
316 |
<layout class="QGridLayout" name="gridLayout_3"> |
|
317 |
<item row="6" column="0"> |
|
318 |
<layout class="QVBoxLayout" name="verticalLayout_2"> |
|
319 |
<item> |
|
320 |
<layout class="QHBoxLayout" name="horizontalLayout_2"> |
|
321 |
<property name="sizeConstraint"> |
|
322 |
<enum>QLayout::SetDefaultConstraint</enum> |
|
323 |
</property> |
|
324 |
<item> |
|
325 |
<layout class="QHBoxLayout" name="horizontalLayout_4"/> |
|
326 |
</item> |
|
327 |
<item> |
|
328 |
<widget class="QPushButton" name="pushButtonLineNoAttribute"> |
|
329 |
<property name="minimumSize"> |
|
330 |
<size> |
|
331 |
<width>50</width> |
|
332 |
<height>24</height> |
|
333 |
</size> |
|
334 |
</property> |
|
335 |
<property name="maximumSize"> |
|
336 |
<size> |
|
337 |
<width>16777215</width> |
|
338 |
<height>24</height> |
|
339 |
</size> |
|
340 |
</property> |
|
341 |
<property name="text"> |
|
342 |
<string>Line No Attribute</string> |
|
58 |
<string>Minimum Detection Size : </string> |
|
343 | 59 |
</property> |
344 | 60 |
</widget> |
345 | 61 |
</item> |
346 | 62 |
<item> |
347 |
<spacer name="horizontalSpacer_10"> |
|
348 |
<property name="orientation"> |
|
349 |
<enum>Qt::Horizontal</enum> |
|
350 |
</property> |
|
351 |
<property name="sizeHint" stdset="0"> |
|
352 |
<size> |
|
353 |
<width>40</width> |
|
354 |
<height>20</height> |
|
355 |
</size> |
|
356 |
</property> |
|
357 |
</spacer> |
|
63 |
<widget class="QSpinBox" name="spinBoxMinimumSize"/> |
|
358 | 64 |
</item> |
65 |
</layout> |
|
66 |
</item> |
|
67 |
<item> |
|
68 |
<layout class="QHBoxLayout" name="horizontalLayout_20"> |
|
359 | 69 |
<item> |
360 |
<widget class="QPushButton" name="pushButtonAddProperty">
|
|
70 |
<widget class="QLabel" name="label_33">
|
|
361 | 71 |
<property name="minimumSize"> |
362 | 72 |
<size> |
363 |
<width>50</width>
|
|
73 |
<width>230</width>
|
|
364 | 74 |
<height>0</height> |
365 | 75 |
</size> |
366 | 76 |
</property> |
367 | 77 |
<property name="maximumSize"> |
368 | 78 |
<size> |
369 |
<width>50</width>
|
|
79 |
<width>230</width>
|
|
370 | 80 |
<height>16777215</height> |
371 | 81 |
</size> |
372 | 82 |
</property> |
373 | 83 |
<property name="text"> |
374 |
<string>Add</string> |
|
375 |
</property> |
|
376 |
<property name="default"> |
|
377 |
<bool>false</bool> |
|
84 |
<string>Unrecognition Ignore Step : </string> |
|
378 | 85 |
</property> |
379 | 86 |
</widget> |
380 | 87 |
</item> |
381 | 88 |
<item> |
382 |
<widget class="QPushButton" name="pushButtonDeleteProperty"> |
|
383 |
<property name="minimumSize"> |
|
384 |
<size> |
|
385 |
<width>50</width> |
|
386 |
<height>0</height> |
|
387 |
</size> |
|
89 |
<widget class="QSpinBox" name="spinBoxUnrecognitionIgnoreStep"> |
|
90 |
<property name="maximum"> |
|
91 |
<number>10</number> |
|
388 | 92 |
</property> |
93 |
</widget> |
|
94 |
</item> |
|
95 |
</layout> |
|
96 |
</item> |
|
97 |
<item> |
|
98 |
<layout class="QHBoxLayout" name="horizontalLayout_6"> |
|
99 |
<item> |
|
100 |
<widget class="QLabel" name="label_29"> |
|
389 | 101 |
<property name="maximumSize"> |
390 | 102 |
<size> |
391 |
<width>50</width>
|
|
103 |
<width>230</width>
|
|
392 | 104 |
<height>16777215</height> |
393 | 105 |
</size> |
394 | 106 |
</property> |
395 | 107 |
<property name="text"> |
396 |
<string>Delete</string> |
|
108 |
<string>Drawing Thickness Reinforcement Step : </string> |
|
109 |
</property> |
|
110 |
</widget> |
|
111 |
</item> |
|
112 |
<item> |
|
113 |
<widget class="QSpinBox" name="spinBoxDilateSize"> |
|
114 |
<property name="maximum"> |
|
115 |
<number>10</number> |
|
397 | 116 |
</property> |
398 | 117 |
</widget> |
399 | 118 |
</item> |
400 | 119 |
</layout> |
401 | 120 |
</item> |
402 | 121 |
<item> |
403 |
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
|
122 |
<layout class="QHBoxLayout" name="horizontalLayout_10">
|
|
404 | 123 |
<item> |
405 |
<widget class="QListWidget" name="listWidgetLineNo"/> |
|
124 |
<widget class="QLabel" name="label_32"> |
|
125 |
<property name="maximumSize"> |
|
126 |
<size> |
|
127 |
<width>230</width> |
|
128 |
<height>16777215</height> |
|
129 |
</size> |
|
130 |
</property> |
|
131 |
<property name="text"> |
|
132 |
<string>Drawing Flattening Step : </string> |
|
133 |
</property> |
|
134 |
</widget> |
|
135 |
</item> |
|
136 |
<item> |
|
137 |
<widget class="QSpinBox" name="spinBoxFlatSize"/> |
|
406 | 138 |
</item> |
407 | 139 |
</layout> |
408 | 140 |
</item> |
... | ... | |
474 | 206 |
</layout> |
475 | 207 |
</item> |
476 | 208 |
<item> |
209 |
<layout class="QHBoxLayout" name="horizontalLayout_26"> |
|
210 |
<item> |
|
211 |
<widget class="QLabel" name="label_37"> |
|
212 |
<property name="text"> |
|
213 |
<string>Allowed Single Text : </string> |
|
214 |
</property> |
|
215 |
</widget> |
|
216 |
</item> |
|
217 |
<item> |
|
218 |
<widget class="QLineEdit" name="lineEditSingleText"/> |
|
219 |
</item> |
|
220 |
</layout> |
|
221 |
</item> |
|
222 |
<item> |
|
477 | 223 |
<layout class="QHBoxLayout" name="horizontalLayout_15"> |
478 | 224 |
<item> |
479 | 225 |
<widget class="QLabel" name="label_20"> |
... | ... | |
619 | 365 |
</property> |
620 | 366 |
</spacer> |
621 | 367 |
</item> |
622 |
</layout> |
|
623 |
</item> |
|
624 |
</layout> |
|
625 |
</item> |
|
626 |
</layout> |
|
627 |
</widget> |
|
628 |
</item> |
|
629 |
<item row="2" column="1"> |
|
630 |
<widget class="QGroupBox" name="groupBoxFilter"> |
|
631 |
<property name="title"> |
|
632 |
<string>Filter</string> |
|
633 |
</property> |
|
634 |
<layout class="QGridLayout" name="gridLayout_8"> |
|
635 |
<item row="0" column="0"> |
|
636 |
<layout class="QVBoxLayout" name="verticalLayout_9"> |
|
637 |
<item> |
|
638 |
<layout class="QHBoxLayout" name="horizontalLayout_16"> |
|
639 |
<item alignment="Qt::AlignVCenter"> |
|
640 |
<widget class="QLabel" name="label_10"> |
|
641 |
<property name="maximumSize"> |
|
642 |
<size> |
|
643 |
<width>230</width> |
|
644 |
<height>16777215</height> |
|
645 |
</size> |
|
646 |
</property> |
|
647 |
<property name="text"> |
|
648 |
<string>Minimum Detection Size : </string> |
|
649 |
</property> |
|
650 |
</widget> |
|
651 |
</item> |
|
652 |
<item> |
|
653 |
<widget class="QSpinBox" name="spinBoxMinimumSize"/> |
|
654 |
</item> |
|
655 |
</layout> |
|
656 |
</item> |
|
657 |
<item> |
|
658 |
<layout class="QHBoxLayout" name="horizontalLayout_20"> |
|
368 |
</layout> |
|
369 |
</item> |
|
370 |
</layout> |
|
371 |
</item> |
|
372 |
</layout> |
|
373 |
</widget> |
|
374 |
</item> |
|
375 |
<item row="1" column="1"> |
|
376 |
<widget class="QGroupBox" name="groupBoxAttribute"> |
|
377 |
<property name="maximumSize"> |
|
378 |
<size> |
|
379 |
<width>16777215</width> |
|
380 |
<height>16777215</height> |
|
381 |
</size> |
|
382 |
</property> |
|
383 |
<property name="title"> |
|
384 |
<string>Attribute</string> |
|
385 |
</property> |
|
386 |
<layout class="QGridLayout" name="gridLayout_6"> |
|
387 |
<item row="0" column="0"> |
|
388 |
<layout class="QVBoxLayout" name="verticalLayout_3"> |
|
389 |
<item> |
|
390 |
<layout class="QHBoxLayout" name="horizontalLayout_8"> |
|
391 |
<item alignment="Qt::AlignVCenter"> |
|
392 |
<widget class="QLabel" name="label_6"> |
|
393 |
<property name="text"> |
|
394 |
<string>Size Delimiter : </string> |
|
395 |
</property> |
|
396 |
</widget> |
|
397 |
</item> |
|
398 |
<item alignment="Qt::AlignVCenter"> |
|
399 |
<widget class="QLineEdit" name="lineEditSizeDelimiter"/> |
|
400 |
</item> |
|
401 |
</layout> |
|
402 |
</item> |
|
403 |
<item> |
|
404 |
<layout class="QHBoxLayout" name="horizontalLayout"> |
|
405 |
<item> |
|
406 |
<widget class="QLabel" name="label_15"> |
|
407 |
<property name="maximumSize"> |
|
408 |
<size> |
|
409 |
<width>190</width> |
|
410 |
<height>16777215</height> |
|
411 |
</size> |
|
412 |
</property> |
|
413 |
<property name="text"> |
|
414 |
<string>Attribute Detection Range(Ratio) : </string> |
|
415 |
</property> |
|
416 |
</widget> |
|
417 |
</item> |
|
418 |
<item> |
|
419 |
<widget class="QDoubleSpinBox" name="doubleSpinBoxDetectionRange"> |
|
420 |
<property name="singleStep"> |
|
421 |
<double>0.100000000000000</double> |
|
422 |
</property> |
|
423 |
<property name="value"> |
|
424 |
<double>1.000000000000000</double> |
|
425 |
</property> |
|
426 |
</widget> |
|
427 |
</item> |
|
428 |
</layout> |
|
429 |
</item> |
|
430 |
<item> |
|
431 |
<layout class="QHBoxLayout" name="horizontalLayout_5"> |
|
432 |
<item> |
|
433 |
<widget class="QLabel" name="label_24"> |
|
434 |
<property name="maximumSize"> |
|
435 |
<size> |
|
436 |
<width>190</width> |
|
437 |
<height>16777215</height> |
|
438 |
</size> |
|
439 |
</property> |
|
440 |
<property name="text"> |
|
441 |
<string>Line Flow Mark Position(Percent) : </string> |
|
442 |
</property> |
|
443 |
</widget> |
|
444 |
</item> |
|
445 |
<item> |
|
446 |
<widget class="QSpinBox" name="spinBoxFlowMarkPosition"> |
|
447 |
<property name="maximum"> |
|
448 |
<number>100</number> |
|
449 |
</property> |
|
450 |
</widget> |
|
451 |
</item> |
|
452 |
</layout> |
|
453 |
</item> |
|
454 |
<item> |
|
455 |
<layout class="QHBoxLayout" name="horizontalLayout_12"> |
|
456 |
<item> |
|
457 |
<widget class="QLabel" name="label_26"> |
|
458 |
<property name="maximumSize"> |
|
459 |
<size> |
|
460 |
<width>220</width> |
|
461 |
<height>16777215</height> |
|
462 |
</size> |
|
463 |
</property> |
|
464 |
<property name="text"> |
|
465 |
<string>Line Flow Mark Minimum Line Length : </string> |
|
466 |
</property> |
|
467 |
</widget> |
|
468 |
</item> |
|
469 |
<item> |
|
470 |
<widget class="QSpinBox" name="spinBoxFlowMarkLength"> |
|
471 |
<property name="minimum"> |
|
472 |
<number>1</number> |
|
473 |
</property> |
|
474 |
<property name="maximum"> |
|
475 |
<number>99999</number> |
|
476 |
</property> |
|
477 |
</widget> |
|
478 |
</item> |
|
479 |
</layout> |
|
480 |
</item> |
|
481 |
</layout> |
|
482 |
</item> |
|
483 |
</layout> |
|
484 |
</widget> |
|
485 |
</item> |
|
486 |
</layout> |
|
487 |
</widget> |
|
488 |
<widget class="QWidget" name="Recognition2"> |
|
489 |
<attribute name="title"> |
|
490 |
<string>Recognition</string> |
|
491 |
</attribute> |
|
492 |
<layout class="QGridLayout" name="gridLayout_2"> |
|
493 |
<item row="1" column="1"> |
|
494 |
<widget class="QGroupBox" name="groupBoxLineNo"> |
|
495 |
<property name="title"> |
|
496 |
<string>Line No</string> |
|
497 |
</property> |
|
498 |
<layout class="QGridLayout" name="gridLayout_3"> |
|
499 |
<item row="6" column="0"> |
|
500 |
<layout class="QVBoxLayout" name="verticalLayout_2"> |
|
501 |
<item> |
|
502 |
<layout class="QHBoxLayout" name="horizontalLayout_2"> |
|
503 |
<property name="sizeConstraint"> |
|
504 |
<enum>QLayout::SetDefaultConstraint</enum> |
|
505 |
</property> |
|
506 |
<item> |
|
507 |
<layout class="QHBoxLayout" name="horizontalLayout_4"/> |
|
508 |
</item> |
|
509 |
<item> |
|
510 |
<widget class="QPushButton" name="pushButtonLineNoAttribute"> |
|
511 |
<property name="minimumSize"> |
|
512 |
<size> |
|
513 |
<width>50</width> |
|
514 |
<height>24</height> |
|
515 |
</size> |
|
516 |
</property> |
|
517 |
<property name="maximumSize"> |
|
518 |
<size> |
|
519 |
<width>16777215</width> |
|
520 |
<height>24</height> |
|
521 |
</size> |
|
522 |
</property> |
|
523 |
<property name="text"> |
|
524 |
<string>Line No Attribute</string> |
|
525 |
</property> |
|
526 |
</widget> |
|
527 |
</item> |
|
528 |
<item> |
|
529 |
<spacer name="horizontalSpacer_10"> |
|
530 |
<property name="orientation"> |
|
531 |
<enum>Qt::Horizontal</enum> |
|
532 |
</property> |
|
533 |
<property name="sizeHint" stdset="0"> |
|
534 |
<size> |
|
535 |
<width>40</width> |
|
536 |
<height>20</height> |
|
537 |
</size> |
|
538 |
</property> |
|
539 |
</spacer> |
|
540 |
</item> |
|
659 | 541 |
<item> |
660 |
<widget class="QLabel" name="label_33">
|
|
542 |
<widget class="QPushButton" name="pushButtonAddProperty">
|
|
661 | 543 |
<property name="minimumSize"> |
662 | 544 |
<size> |
663 |
<width>230</width>
|
|
545 |
<width>50</width>
|
|
664 | 546 |
<height>0</height> |
665 | 547 |
</size> |
666 | 548 |
</property> |
667 | 549 |
<property name="maximumSize"> |
668 | 550 |
<size> |
669 |
<width>230</width>
|
|
551 |
<width>50</width>
|
|
670 | 552 |
<height>16777215</height> |
671 | 553 |
</size> |
672 | 554 |
</property> |
673 | 555 |
<property name="text"> |
674 |
<string>Unrecognition Ignore Step : </string>
|
|
556 |
<string>Add</string>
|
|
675 | 557 |
</property> |
676 |
</widget> |
|
677 |
</item> |
|
678 |
<item> |
|
679 |
<widget class="QSpinBox" name="spinBoxUnrecognitionIgnoreStep"> |
|
680 |
<property name="maximum"> |
|
681 |
<number>10</number> |
|
558 |
<property name="default"> |
|
559 |
<bool>false</bool> |
|
682 | 560 |
</property> |
683 | 561 |
</widget> |
684 | 562 |
</item> |
685 |
</layout> |
|
686 |
</item> |
|
687 |
<item> |
|
688 |
<layout class="QHBoxLayout" name="horizontalLayout_6"> |
|
689 | 563 |
<item> |
690 |
<widget class="QLabel" name="label_29">
|
|
691 |
<property name="maximumSize">
|
|
564 |
<widget class="QPushButton" name="pushButtonDeleteProperty">
|
|
565 |
<property name="minimumSize">
|
|
692 | 566 |
<size> |
693 |
<width>230</width>
|
|
694 |
<height>16777215</height>
|
|
567 |
<width>50</width>
|
|
568 |
<height>0</height>
|
|
695 | 569 |
</size> |
696 | 570 |
</property> |
697 |
<property name="text"> |
|
698 |
<string>Drawing Thickness Reinforcement Step : </string> |
|
699 |
</property> |
|
700 |
</widget> |
|
701 |
</item> |
|
702 |
<item> |
|
703 |
<widget class="QSpinBox" name="spinBoxDilateSize"> |
|
704 |
<property name="maximum"> |
|
705 |
<number>10</number> |
|
706 |
</property> |
|
707 |
</widget> |
|
708 |
</item> |
|
709 |
</layout> |
|
710 |
</item> |
|
711 |
<item> |
|
712 |
<layout class="QHBoxLayout" name="horizontalLayout_10"> |
|
713 |
<item> |
|
714 |
<widget class="QLabel" name="label_32"> |
|
715 | 571 |
<property name="maximumSize"> |
716 | 572 |
<size> |
717 |
<width>230</width>
|
|
573 |
<width>50</width>
|
|
718 | 574 |
<height>16777215</height> |
719 | 575 |
</size> |
720 | 576 |
</property> |
721 | 577 |
<property name="text"> |
722 |
<string>Drawing Flattening Step : </string>
|
|
578 |
<string>Delete</string>
|
|
723 | 579 |
</property> |
724 | 580 |
</widget> |
725 | 581 |
</item> |
582 |
</layout> |
|
583 |
</item> |
|
584 |
<item> |
|
585 |
<layout class="QHBoxLayout" name="horizontalLayout_3"> |
|
726 | 586 |
<item> |
727 |
<widget class="QSpinBox" name="spinBoxFlatSize"/>
|
|
587 |
<widget class="QListWidget" name="listWidgetLineNo"/>
|
|
728 | 588 |
</item> |
729 | 589 |
</layout> |
730 | 590 |
</item> |
... | ... | |
733 | 593 |
</layout> |
734 | 594 |
</widget> |
735 | 595 |
</item> |
596 |
<item row="0" column="1"> |
|
597 |
<widget class="QGroupBox" name="groupBox"> |
|
598 |
<property name="title"> |
|
599 |
<string>Line Detection</string> |
|
600 |
</property> |
|
601 |
<layout class="QGridLayout" name="gridLayout_5"> |
|
602 |
<item row="0" column="0"> |
|
603 |
<layout class="QGridLayout" name="gridLayout_11"> |
|
604 |
<item row="3" column="1"> |
|
605 |
<widget class="QSpinBox" name="spinBoxLengthToConnectLine"> |
|
606 |
<property name="value"> |
|
607 |
<number>20</number> |
|
608 |
</property> |
|
609 |
</widget> |
|
610 |
</item> |
|
611 |
<item row="0" column="1"> |
|
612 |
<widget class="QSpinBox" name="spinBoxMinArea"> |
|
613 |
<property name="minimumSize"> |
|
614 |
<size> |
|
615 |
<width>100</width> |
|
616 |
<height>0</height> |
|
617 |
</size> |
|
618 |
</property> |
|
619 |
</widget> |
|
620 |
</item> |
|
621 |
<item row="2" column="1"> |
|
622 |
<widget class="QSpinBox" name="smallLineMinLengthSpinBox"> |
|
623 |
<property name="minimumSize"> |
|
624 |
<size> |
|
625 |
<width>100</width> |
|
626 |
<height>0</height> |
|
627 |
</size> |
|
628 |
</property> |
|
629 |
</widget> |
|
630 |
</item> |
|
631 |
<item row="4" column="1" colspan="2"> |
|
632 |
<widget class="QComboBox" name="comboBoxLineType"/> |
|
633 |
</item> |
|
634 |
<item row="1" column="1"> |
|
635 |
<widget class="QSpinBox" name="spinBoxWidth"> |
|
636 |
<property name="minimumSize"> |
|
637 |
<size> |
|
638 |
<width>100</width> |
|
639 |
<height>0</height> |
|
640 |
</size> |
|
641 |
</property> |
|
642 |
</widget> |
|
643 |
</item> |
|
644 |
<item row="0" column="0"> |
|
645 |
<widget class="QLabel" name="label_4"> |
|
646 |
<property name="text"> |
|
647 |
<string>Ignore Small Object Size : </string> |
|
648 |
</property> |
|
649 |
</widget> |
|
650 |
</item> |
|
651 |
<item row="2" column="0"> |
|
652 |
<widget class="QLabel" name="label_16"> |
|
653 |
<property name="text"> |
|
654 |
<string>Line Minimum Length : </string> |
|
655 |
</property> |
|
656 |
</widget> |
|
657 |
</item> |
|
658 |
<item row="3" column="0"> |
|
659 |
<widget class="QLabel" name="label_9"> |
|
660 |
<property name="text"> |
|
661 |
<string>Length to Connect Line : </string> |
|
662 |
</property> |
|
663 |
</widget> |
|
664 |
</item> |
|
665 |
<item row="1" column="0"> |
|
666 |
<widget class="QLabel" name="label"> |
|
667 |
<property name="text"> |
|
668 |
<string>Sliding Window Size(WxH) : </string> |
|
669 |
</property> |
|
670 |
<property name="alignment"> |
|
671 |
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> |
|
672 |
</property> |
|
673 |
</widget> |
|
674 |
</item> |
|
675 |
<item row="0" column="2"> |
|
676 |
<widget class="QLabel" name="label_5"> |
|
677 |
<property name="text"> |
|
678 |
<string>< Area < </string> |
|
679 |
</property> |
|
680 |
<property name="alignment"> |
|
681 |
<set>Qt::AlignCenter</set> |
|
682 |
</property> |
|
683 |
</widget> |
|
684 |
</item> |
|
685 |
<item row="1" column="2"> |
|
686 |
<widget class="QSpinBox" name="spinBoxHeight"> |
|
687 |
<property name="minimumSize"> |
|
688 |
<size> |
|
689 |
<width>100</width> |
|
690 |
<height>0</height> |
|
691 |
</size> |
|
692 |
</property> |
|
693 |
</widget> |
|
694 |
</item> |
|
695 |
<item row="4" column="0"> |
|
696 |
<widget class="QLabel" name="label_28"> |
|
697 |
<property name="text"> |
|
698 |
<string>Default Line Type : </string> |
|
699 |
</property> |
|
700 |
</widget> |
|
701 |
</item> |
|
702 |
<item row="0" column="4"> |
|
703 |
<spacer name="horizontalSpacer_2"> |
|
704 |
<property name="orientation"> |
|
705 |
<enum>Qt::Horizontal</enum> |
|
706 |
</property> |
|
707 |
<property name="sizeHint" stdset="0"> |
|
708 |
<size> |
|
709 |
<width>40</width> |
|
710 |
<height>20</height> |
|
711 |
</size> |
|
712 |
</property> |
|
713 |
</spacer> |
|
714 |
</item> |
|
715 |
<item row="0" column="3"> |
|
716 |
<widget class="QSpinBox" name="spinBoxMaxArea"> |
|
717 |
<property name="minimumSize"> |
|
718 |
<size> |
|
719 |
<width>100</width> |
|
720 |
<height>0</height> |
|
721 |
</size> |
|
722 |
</property> |
|
723 |
</widget> |
|
724 |
</item> |
|
725 |
<item row="5" column="0"> |
|
726 |
<widget class="QLabel" name="label_35"> |
|
727 |
<property name="text"> |
|
728 |
<string>Diagonal Detection : </string> |
|
729 |
</property> |
|
730 |
</widget> |
|
731 |
</item> |
|
732 |
<item row="5" column="1"> |
|
733 |
<widget class="QRadioButton" name="radioButtonDiagonalYes"> |
|
734 |
<property name="text"> |
|
735 |
<string>Yes</string> |
|
736 |
</property> |
|
737 |
<attribute name="buttonGroup"> |
|
738 |
<string notr="true">buttonGroup_3</string> |
|
739 |
</attribute> |
|
740 |
</widget> |
|
741 |
</item> |
|
742 |
<item row="5" column="2"> |
|
743 |
<widget class="QRadioButton" name="radioButtonDiagonalNo"> |
|
744 |
<property name="text"> |
|
745 |
<string>No</string> |
|
746 |
</property> |
|
747 |
<attribute name="buttonGroup"> |
|
748 |
<string notr="true">buttonGroup_3</string> |
|
749 |
</attribute> |
|
750 |
</widget> |
|
751 |
</item> |
|
752 |
</layout> |
|
753 |
</item> |
|
754 |
</layout> |
|
755 |
</widget> |
|
756 |
</item> |
|
736 | 757 |
</layout> |
737 | 758 |
</widget> |
738 | 759 |
<widget class="QWidget" name="tabTagNoRule"> |
... | ... | |
1367 | 1388 |
</layout> |
1368 | 1389 |
</widget> |
1369 | 1390 |
<tabstops> |
1370 |
<tabstop>spinBoxExpandSize</tabstop> |
|
1371 |
<tabstop>minTextSizeSpinBox</tabstop> |
내보내기 Unified diff