개정판 789fb445
issue #655: back to log
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'# + " >> output.log" |
|
276 |
#subprocess.call(trainCmd, shell = True) |
|
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" |
|
277 | 280 |
|
278 |
unicharsetExtractorCmd = unicharset_extractor_cmd + ' ' + trainingBoxPath# + " >> output2.log" |
|
279 |
#subprocess.call(unicharsetExtractorCmd, shell = True) |
|
281 |
subprocess.call(unicharsetExtractorCmd, shell = True) |
|
280 | 282 |
|
281 |
#os.system(trainCmd + " & timeout 15")
|
|
282 |
#os.system(unicharsetExtractorCmd + " & timeout 15")
|
|
283 |
#os.system(trainCmd)
|
|
284 |
#os.system(unicharsetExtractorCmd)
|
|
283 | 285 |
|
284 | 286 |
#setUnicharsetPropertiesCmd = set_unicharset_properties_cmd + |
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)) |
|
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))
|
|
287 | 289 |
|
288 | 290 |
''' |
289 | 291 |
@brief make Box data by button click |
내보내기 Unified diff