프로젝트

일반

사용자정보

개정판 7dfe0c0b

ID7dfe0c0be09fc85223fdfeb7043b50cb4097f2ae
상위 dbe59b73
하위 b49856dc

함의성이(가) 6년 이상 전에 추가함

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

클립보드 이미지 추가 (최대 크기: 500 MB)