개정판 64cb9d3d
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