프로젝트

일반

사용자정보

개정판 64cb9d3d

ID64cb9d3d36d42ef9c8e0f8e4cc2024cf3a69ff8f
상위 75f97173
하위 eb1b53b1

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

issue #663: batch recognition time, symbol text supported

Change-Id: I36da0e5345bdb8cf948a21561b395db3082d429f

차이점 보기:

DTI_PID/DTI_PID/RecognitionDialog.py
880 880
                worker.updateBatchProgress.emit(len(drawings), 1)
881 881

  
882 882
                if worker.isSymbolChecked:
883
                    if worker.symbol_time:
884
                        symbol_time_temp = worker.symbol_time
885
                    else:
886
                        symbol_time_temp = None
883 887
                    worker.symbol_time = timeit.default_timer()
884 888
                    
885 889
                    # calculate total count of symbol
......
945 949
                    for sym in searchedSymbolList:
946 950
                        Worker.remove_detected_symbol_image(sym, app_doc_data.imgSrc)
947 951

  
948
                    worker.symbol_time = timeit.default_timer() - worker.symbol_time
952
                    worker.symbol_time = timeit.default_timer() - worker.symbol_time if not symbol_time_temp else timeit.default_timer() - worker.symbol_time + symbol_time_temp
949 953
                else:
950 954
                    '''
951 955
                    import math
......
1025 1029
                if worker.isTextChecked:
1026 1030
                    from TextInfo import TextInfo
1027 1031

  
1032
                    if worker.text_time:
1033
                        text_time_temp = worker.text_time
1034
                    else:
1035
                        text_time_temp = None
1028 1036
                    worker.text_time = timeit.default_timer()
1029 1037

  
1030 1038
                    textAreas, ocr_image = textDetector.detectTextAreas(area.img if area is not None else app_doc_data.imgSrc,
......
1091 1099

  
1092 1100
                    app_doc_data.imgName = os.path.splitext(os.path.basename(mainRes))[0]
1093 1101

  
1094
                    worker.text_time = timeit.default_timer() - worker.text_time
1102
                    worker.text_time = timeit.default_timer() - worker.text_time if not text_time_temp else timeit.default_timer() - worker.text_time + text_time_temp
1095 1103
                else:
1096 1104
                    import math
1097 1105
                    from TextInfo import TextInfo

내보내기 Unified diff

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