프로젝트

일반

사용자정보

개정판 382ee77e

ID382ee77e2e96ba9ea8df2fd80532e2f85cb59b99
상위 ff768aea
하위 424bad99

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

build issue #655: loging

차이점 보기:

DTI_PID/DTI_PID/TrainingImageListDialog.py
281 281
            #trainCmd = tesseract_cmd + ' ' + trainingImgPath + ' ' + trainingBoxPath.replace('.box', '') + ' nobatch box.train' + ' >> output.log'
282 282
            #trainCmd = '\"' + tesseract_cmd + ' ' + trainingImgPath + ' ' + trainingBoxPath.replace('.box', '') + ' nobatch box.train &timeout 15' + '\"'
283 283
            #trainCmd = '\"' + tesseract_cmd + ' ' + trainingImgPath + ' ' + trainingBoxPath.replace('.box', '') + ' nobatch box.train' + '\"'
284
            trainCmd = '\"' + tesseract_cmd + '\"' + ' ' + trainingImgPath + ' ' + trainingBoxPath.replace('.box', '') + ' nobatch box.train'
284
            trainCmd = '\"' + tesseract_cmd + '\"' + ' ' + trainingImgPath + ' ' + trainingBoxPath.replace('.box', '') + ' nobatch box.train' + ' >> output1.log'
285 285
            subprocess.call(trainCmd, shell = True)
286 286
        
287 287
            #unicharsetExtractorCmd = unicharset_extractor_cmd + ' ' + trainingBoxPath + " >> output.log"
......
295 295
            inputUnicharset = os.path.join(runningPath, 'unicharset')
296 296
            #outputUnicharset = os.path.join(project.getTrainingFilePath(), 'unicharset')
297 297
            scriptPath = ' --script_dir=//langdata-master'
298
            setUnicharsetPropertiesCmd = '\"' + set_unicharset_properties_cmd + '\" -U ' + inputUnicharset + ' -O ' + inputUnicharset + scriptPath
298
            setUnicharsetPropertiesCmd = '\"' + set_unicharset_properties_cmd + '\" -U ' + inputUnicharset + ' -O ' + inputUnicharset + scriptPath + ' >> output2.log'
299 299
            subprocess.call(setUnicharsetPropertiesCmd, shell = True)
300 300
        
301 301
            fontProperty = os.path.join(project.getTrainingFilePath(), 'font_properties')
......
304 304
            fw.close()
305 305

  
306 306
            trPath = os.path.join(project.getTrainingFilePath(), oCRLang + '.' + oCRLang + 'F.exp0.tr')
307
            shapeclusteringCmd = '\"' + shapeclustering_cmd + '\" -F ' + fontProperty + ' -U ' + inputUnicharset + ' ' + trPath
307
            shapeclusteringCmd = '\"' + shapeclustering_cmd + '\" -F ' + fontProperty + ' -U ' + inputUnicharset + ' ' + trPath + ' >> output3.log'
308 308
            subprocess.call(shapeclusteringCmd, shell = True)
309 309

  
310 310
            #outputLangUnicharset = os.path.join(project.getTrainingFilePath(), 'seed.unicharset')
311
            mftrainingCmd = '\"' + mftraining_cmd + '\" -F ' + fontProperty + ' -U ' + inputUnicharset + ' -O ' + inputUnicharset + ' ' + trPath
311
            mftrainingCmd = '\"' + mftraining_cmd + '\" -F ' + fontProperty + ' -U ' + inputUnicharset + ' -O ' + inputUnicharset + ' ' + trPath + ' >> output4.log'
312 312
            subprocess.call(mftrainingCmd, shell = True)
313 313

  
314
            cntrainingCmd = '\"' + cntraining_cmd + '\" ' + trPath
314
            cntrainingCmd = '\"' + cntraining_cmd + '\" ' + trPath + ' >> output5.log'
315 315
            subprocess.call(cntrainingCmd, shell = True)
316 316

  
317 317
            if os.path.isfile(os.path.join(runningPath, oCRLang + '.inttemp')):

내보내기 Unified diff

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