MOD:公章是数字导致不参与比对
Showing
1 changed file
with
5 additions
and
0 deletions
... | @@ -2508,6 +2508,11 @@ def se_compare_license(license_en, ocr_res_dict, field_list): | ... | @@ -2508,6 +2508,11 @@ def se_compare_license(license_en, ocr_res_dict, field_list): |
2508 | elif ocr_field == consts.JYPZ_OCR_FIELD and name == consts.SE_GB_USED_FIELD[2]: | 2508 | elif ocr_field == consts.JYPZ_OCR_FIELD and name == consts.SE_GB_USED_FIELD[2]: |
2509 | result = getattr(cp, compare_logic[name][1])(value, ocr_str, **compare_logic[name][2]) | 2509 | result = getattr(cp, compare_logic[name][1])(value, ocr_str, **compare_logic[name][2]) |
2510 | no_key = False | 2510 | no_key = False |
2511 | elif isinstance(ocr_str, int): | ||
2512 | # 目前应该只有财报的公章 | ||
2513 | result = getattr(cp, compare_logic[name][1])(value, ocr_str, **compare_logic[name][2]) | ||
2514 | compare_log.info('{0} [{1}_license] [field:{2}] [input_str:{3}] [ocr_str:{4}] [result:{5}]'.format(log_base, license_en, name, value, ocr_str, result)) | ||
2515 | no_key = False | ||
2511 | else: | 2516 | else: |
2512 | result = consts.RESULT_N | 2517 | result = consts.RESULT_N |
2513 | ocr_str = empty_str | 2518 | ocr_str = empty_str | ... | ... |
-
Please register or sign in to post a comment