개정판 a83dfe87
build issue #655: log
DTI_PID/DTI_PID/TrainingImageListDialog.py | ||
---|---|---|
273 | 273 |
#try: |
274 | 274 |
# 실제 적용 데이터 생성 3단계진행 |
275 | 275 |
trainCmd = tesseract_cmd + ' ' + trainingImgPath + ' ' + trainingBoxPath.replace('.box', '') + ' nobatch box.train' |
276 |
subprocess.call(trainCmd, shell = True) |
|
276 |
strrr = subprocess.call(trainCmd, shell = True) |
|
277 |
print(strrr) |
|
277 | 278 |
|
278 |
unicharsetExtractorCmd = unicharset_extractor_cmd + ' ' + trainingBoxPath |
|
279 |
unicharsetExtractorCmd = unicharset_extractor_cmd + ' ' + trainingBoxPath + " >> output.log"
|
|
279 | 280 |
|
280 | 281 |
subprocess.call(unicharsetExtractorCmd, shell = True) |
281 | 282 |
|
282 |
os.system(trainCmd) |
|
283 |
os.system(unicharsetExtractorCmd) |
|
283 |
#os.system(trainCmd)
|
|
284 |
#os.system(unicharsetExtractorCmd)
|
|
284 | 285 |
|
285 | 286 |
#setUnicharsetPropertiesCmd = set_unicharset_properties_cmd + |
286 | 287 |
#except Exception as ex: |
내보내기 Unified diff