fix bug
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -38,7 +38,7 @@ class Comparison: | ... | @@ -38,7 +38,7 @@ class Comparison: |
38 | if kwargs.get('ocr_replace', False): | 38 | if kwargs.get('ocr_replace', False): |
39 | ocr_str = ocr_str.replace('年', '-').replace('月', '-').replace('日', '') | 39 | ocr_str = ocr_str.replace('年', '-').replace('月', '-').replace('日', '') |
40 | if kwargs.get('input_replace') is not None: | 40 | if kwargs.get('input_replace') is not None: |
41 | input_str = input_str.replace('-', kwargs.get('replace')) | 41 | input_str = input_str.replace('-', kwargs.get('input_replace')) |
42 | return self.build_res(input_str == ocr_str) | 42 | return self.build_res(input_str == ocr_str) |
43 | 43 | ||
44 | def rmb_compare(self, input_str, ocr_str, **kwargs): | 44 | def rmb_compare(self, input_str, ocr_str, **kwargs): | ... | ... |
-
Please register or sign in to post a comment