개정판 129010b0
build issue #655: hold shell
DTI_PID/DTI_PID/TrainingImageListDialog.py | ||
---|---|---|
270 | 270 |
except Exception as ex: |
271 | 271 |
print('error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)) |
272 | 272 |
|
273 |
#try:
|
|
273 |
try: |
|
274 | 274 |
# 실제 적용 데이터 생성 3단계진행 |
275 |
trainCmd = tesseract_cmd + ' ' + trainingImgPath + ' ' + trainingBoxPath.replace('.box', '') + ' nobatch box.train' |
|
276 |
strrr = subprocess.call(trainCmd, shell = True) |
|
277 |
print(strrr) |
|
278 |
|
|
279 |
unicharsetExtractorCmd = unicharset_extractor_cmd + ' ' + trainingBoxPath + " >> output.log" |
|
275 |
trainCmd = tesseract_cmd + ' ' + trainingImgPath + ' ' + trainingBoxPath.replace('.box', '') + ' nobatch box.train' + " >> output.log" |
|
276 |
#subprocess.call(trainCmd, shell = True) |
|
280 | 277 |
|
281 |
subprocess.call(unicharsetExtractorCmd, shell = True) |
|
278 |
unicharsetExtractorCmd = unicharset_extractor_cmd + ' ' + trainingBoxPath + " >> output2.log" |
|
279 |
#subprocess.call(unicharsetExtractorCmd, shell = True) |
|
282 | 280 |
|
283 |
#os.system(trainCmd)
|
|
284 |
#os.system(unicharsetExtractorCmd)
|
|
281 |
os.system(trainCmd + " & timeout 15")
|
|
282 |
os.system(unicharsetExtractorCmd + " & timeout 15"
|
|
285 | 283 |
|
286 | 284 |
#setUnicharsetPropertiesCmd = set_unicharset_properties_cmd + |
287 |
#except Exception as ex:
|
|
288 |
#print('error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno))
|
|
285 |
except Exception as ex: |
|
286 |
print('error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)) |
|
289 | 287 |
|
290 | 288 |
''' |
291 | 289 |
@brief make Box data by button click |
내보내기 Unified diff