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