fix bug
Showing
2 changed files
with
2 additions
and
2 deletions
... | @@ -59,7 +59,7 @@ TRANS_MAP = { | ... | @@ -59,7 +59,7 @@ TRANS_MAP = { |
59 | 'B': "13", | 59 | 'B': "13", |
60 | } | 60 | } |
61 | TRANS = str.maketrans(TRANS_MAP) | 61 | TRANS = str.maketrans(TRANS_MAP) |
62 | ERROR_CHARS = {'.', '·', '•'} | 62 | ERROR_CHARS = {'.', ':', ':', '•', '·'} |
63 | SKIP_IMG_SHEET_NAME = '未处理图片' | 63 | SKIP_IMG_SHEET_NAME = '未处理图片' |
64 | SKIP_IMG_SHEET_HEADER = ('页码', '序号') | 64 | SKIP_IMG_SHEET_HEADER = ('页码', '序号') |
65 | 65 | ... | ... |
... | @@ -319,7 +319,7 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -319,7 +319,7 @@ class Command(BaseCommand, LoggerMixin): |
319 | else: | 319 | else: |
320 | raise Exception('ocr 2 error, img_path={0}'.format(img_path)) | 320 | raise Exception('ocr 2 error, img_path={0}'.format(img_path)) |
321 | else: # 流水处理 | 321 | else: # 流水处理 |
322 | self.bs_process(wb, ocr_data, bs_summary, unknown_summary, img_path, classify) | 322 | self.bs_process(wb, ocr_data, bs_summary, unknown_summary, img_path, classify, skip_img) |
323 | else: | 323 | else: |
324 | skip_img.append(self.parse_img_path(img_path)) | 324 | skip_img.append(self.parse_img_path(img_path)) |
325 | else: | 325 | else: | ... | ... |
-
Please register or sign in to post a comment