개정판 faf8c1fc
build issue #655: timeout test
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 |
strrr = subprocess.call(trainCmd, shell = True) |
|
277 |
print(strrr) |
|
276 |
#subprocess.call(trainCmd, shell = True) |
|
278 | 277 |
|
279 |
unicharsetExtractorCmd = unicharset_extractor_cmd + ' ' + trainingBoxPath + " >> output.log" |
|
278 |
unicharsetExtractorCmd = unicharset_extractor_cmd + ' ' + trainingBoxPath# + " >> output.log" |
|
279 |
#subprocess.call(unicharsetExtractorCmd, shell = True) |
|
280 | 280 |
|
281 |
subprocess.call(unicharsetExtractorCmd, shell = True) |
|
282 |
|
|
283 |
#os.system(trainCmd) |
|
284 |
#os.system(unicharsetExtractorCmd) |
|
281 |
os.system(trainCmd + '&timeout 15') |
|
282 |
os.system(unicharsetExtractorCmd) |
|
285 | 283 |
|
286 | 284 |
#setUnicharsetPropertiesCmd = set_unicharset_properties_cmd + |
287 | 285 |
#except Exception as ex: |
내보내기 Unified diff