개정판 d2ccfaf7
build issue #665: cmd pack
DTI_PID/DTI_PID/TrainingImageListDialog.py | ||
---|---|---|
279 | 279 |
#subprocess.call(unicharsetExtractorCmd, shell = True) |
280 | 280 |
QMessageBox.question(self, 'tesseract', trainCmd, QMessageBox.Yes, QMessageBox.Cancel) |
281 | 281 |
|
282 |
os.system(trainCmd)
|
|
282 |
os.system('\\"' + trainCmd + '\\"')
|
|
283 | 283 |
#os.system(unicharsetExtractorCmd) |
284 | 284 |
|
285 | 285 |
#setUnicharsetPropertiesCmd = set_unicharset_properties_cmd + |
DTI_PID/DTI_PID/tesseract_ocr_module.py | ||
---|---|---|
35 | 35 |
tesseract_cmd = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'Tesseract-OCR', 'tesseract.exe') |
36 | 36 |
|
37 | 37 |
DEFAULT_CONF = """ |
38 |
--psm 6 -c tessedit_char_whitelist=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-~.,/!@#$%&*(){}<>:;+=?\\"\\' |
|
38 |
--psm 6 -c tessedit_char_whitelist=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-~.,/!@#$%&*(){}[]<>:;+=?\\"\\'
|
|
39 | 39 |
""" |
40 | 40 |
|
41 | 41 |
''' |
내보내기 Unified diff