ADD:log
Showing
1 changed file
with
2 additions
and
0 deletions
1 | import json | 1 | import json |
2 | from multiprocessing.sharedctypes import Value | ||
2 | import os | 3 | import os |
3 | import cv2 | 4 | import cv2 |
4 | import time | 5 | import time |
... | @@ -2501,6 +2502,7 @@ def se_compare_license(license_en, ocr_res_dict, field_list): | ... | @@ -2501,6 +2502,7 @@ def se_compare_license(license_en, ocr_res_dict, field_list): |
2501 | 2502 | ||
2502 | if isinstance(ocr_str, str): | 2503 | if isinstance(ocr_str, str): |
2503 | result = getattr(cp, compare_logic[name][1])(value, ocr_str, **compare_logic[name][2]) | 2504 | result = getattr(cp, compare_logic[name][1])(value, ocr_str, **compare_logic[name][2]) |
2505 | 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)) | ||
2504 | no_key = False | 2506 | no_key = False |
2505 | # 二手车交易凭证 日期 | 2507 | # 二手车交易凭证 日期 |
2506 | 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]: | ... | ... |
-
Please register or sign in to post a comment