개정판 385c48f3
issue #506: add setting text area expansion offset
Change-Id: Idf9dfbda9053a9d0aa07ac5926a81a7314fa1684
DTI_PID/DTI_PID/ConfigurationDialog.py | ||
---|---|---|
79 | 79 |
self.set_ocr_engine_modes() |
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 |
self.ui.lineEditSingleText.setText('H,L') |
|
82 |
self.ui.lineEditSingleText.setText('H,L,1,2,3,4,5,6,7,8,9,0') |
|
83 |
configs = docData.getConfigs('Text Recognition', 'Area Offset') |
|
84 |
self.ui.spinBoxTextAreaOffset.setValue(int(configs[0].value)) if 1 == len(configs) else \ |
|
85 |
self.ui.spinBoxTextAreaOffset.setValue(20) |
|
83 | 86 |
|
84 | 87 |
configs = docData.getConfigs('Text Size', 'Min Text Size') |
85 | 88 |
self.ui.minTextSizeSpinBox.setValue(int(configs[0].value)) if 1 == len(configs) else \ |
... | ... | |
887 | 890 |
configs.append(Config('Text Recognition', 'Expand Size', self.ui.spinBoxExpandSize.value())) |
888 | 891 |
configs.append(Config('Text Recognition', 'Shrink Size', self.ui.spinBoxShrinkSize.value())) |
889 | 892 |
configs.append(Config('Text Recognition', 'Merge Size', self.ui.spinBoxMergeSize.value())) |
893 |
configs.append(Config('Text Recognition', 'Area Offset', self.ui.spinBoxTextAreaOffset.value())) |
|
890 | 894 |
|
891 | 895 |
configs.append(Config('Text Size', 'Min Text Size', self.ui.minTextSizeSpinBox.value())) |
892 | 896 |
configs.append(Config('Text Size', 'Max Text Size', self.ui.maxTextSizeSpinBox.value())) |
내보내기 Unified diff