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