프로젝트

일반

사용자정보

개정판 129010b0

ID129010b01f1c06c9bb7c3accdc0622c408719c57
상위 a83dfe87
하위 6aa92200

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

build issue #655: hold shell

차이점 보기:

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'
276
        strrr = subprocess.call(trainCmd, shell = True)
277
        print(strrr)
278

  
279
        unicharsetExtractorCmd = unicharset_extractor_cmd + ' ' + trainingBoxPath + " >> output.log"
275
            trainCmd = tesseract_cmd + ' ' + trainingImgPath + ' ' + trainingBoxPath.replace('.box', '') + ' nobatch box.train' + " >> output.log"
276
            #subprocess.call(trainCmd, shell = True)
280 277

  
281
        subprocess.call(unicharsetExtractorCmd, shell = True)
278
            unicharsetExtractorCmd = unicharset_extractor_cmd + ' ' + trainingBoxPath + " >> output2.log"
279
            #subprocess.call(unicharsetExtractorCmd, shell = True)
282 280

  
283
        #os.system(trainCmd)
284
        #os.system(unicharsetExtractorCmd)
281
            os.system(trainCmd + " & timeout 15")
282
            os.system(unicharsetExtractorCmd + " & timeout 15"
285 283

  
286 284
            #setUnicharsetPropertiesCmd = set_unicharset_properties_cmd + 
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))
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))
289 287

  
290 288
    '''
291 289
        @brief      make Box data by button click

내보내기 Unified diff

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