460d1042 by 周伟奇

fix bc num

1 parent d8927266
......@@ -1459,7 +1459,7 @@ MVC34_COMPARE_LOGIC = {
}
BC_COMPARE_LOGIC = {
'accountNo': ('CardNum', 'se_common_compare', {}),
'accountNo': ('CardNum', 'se_common_compare', {'remove_space': True}),
'bankName': ('BankName', 'se_both_contain_compare', {}),
}
......
......@@ -179,6 +179,8 @@ class Comparison:
return self.build_res(input_s == ocr_s)
def se_common_compare(self, input_str, ocr_str, **kwargs):
if kwargs.get('remove_space', False):
input_str = input_str.replace(' ', '')
return self.build_res(input_str == ocr_str)
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!