개정판 2d6c2f7b
ocr, manual
Change-Id: Ia271cf05adac6186edc9db6521cc5f4a5ff15691
DTI_PID/DTI_PID/ConfigurationDialog.py | ||
---|---|---|
713 | 713 |
if configs: |
714 | 714 |
self.ui.comboBoxOCREngineMode.setCurrentIndex(int(configs[0].value)) |
715 | 715 |
else: |
716 |
self.ui.comboBoxOCREngineMode.setCurrentIndex(0)
|
|
716 |
self.ui.comboBoxOCREngineMode.setCurrentIndex(3)
|
|
717 | 717 |
except Exception as ex: |
718 | 718 |
from App import App |
719 | 719 |
from AppDocData import MessageType |
DTI_PID/DTI_PID/tesseract_ocr_module.py | ||
---|---|---|
40 | 40 |
DEFAULT_CONF = """ |
41 | 41 |
--psm {} -c tessedit_char_whitelist=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-~.,/z !@#$%&*(){}[]<>:;+=?\\" |
42 | 42 |
""" |
43 |
DEFAULT_CONF_COMM = "--psm {}" |
|
43 |
DEFAULT_CONF_COMM = "--oem 3 --psm {}"
|
|
44 | 44 |
|
45 | 45 |
|
46 | 46 |
def exist_trained_data(): |
내보내기 Unified diff