프로젝트

일반

사용자정보

개정판 789fb445

ID789fb445d7efb67981e7ec7c947ae4aaa492ac53
상위 11a17b8e
하위 faf8c1fc

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

issue #655: back to log

차이점 보기:

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'# + " >> output.log"
276
            #subprocess.call(trainCmd, shell = True)
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"
277 280

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

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

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

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

내보내기 Unified diff

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