460d1042 by 周伟奇

fix bc num

1 parent d8927266
...@@ -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):
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!