fix bc num
Showing
2 changed files
with
3 additions
and
1 deletions
... | @@ -1459,7 +1459,7 @@ MVC34_COMPARE_LOGIC = { | ... | @@ -1459,7 +1459,7 @@ MVC34_COMPARE_LOGIC = { |
1459 | } | 1459 | } |
1460 | 1460 | ||
1461 | BC_COMPARE_LOGIC = { | 1461 | BC_COMPARE_LOGIC = { |
1462 | 'accountNo': ('CardNum', 'se_common_compare', {}), | 1462 | 'accountNo': ('CardNum', 'se_common_compare', {'remove_space': True}), |
1463 | 'bankName': ('BankName', 'se_both_contain_compare', {}), | 1463 | 'bankName': ('BankName', 'se_both_contain_compare', {}), |
1464 | } | 1464 | } |
1465 | 1465 | ... | ... |
... | @@ -179,6 +179,8 @@ class Comparison: | ... | @@ -179,6 +179,8 @@ class Comparison: |
179 | return self.build_res(input_s == ocr_s) | 179 | return self.build_res(input_s == ocr_s) |
180 | 180 | ||
181 | def se_common_compare(self, input_str, ocr_str, **kwargs): | 181 | def se_common_compare(self, input_str, ocr_str, **kwargs): |
182 | if kwargs.get('remove_space', False): | ||
183 | input_str = input_str.replace(' ', '') | ||
182 | return self.build_res(input_str == ocr_str) | 184 | return self.build_res(input_str == ocr_str) |
183 | 185 | ||
184 | def ca_common_compare(self, input_str, ocr_str, **kwargs): | 186 | def ca_common_compare(self, input_str, ocr_str, **kwargs): | ... | ... |
-
Please register or sign in to post a comment