MOD:金额改成字符串才能进入比对
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -2519,7 +2519,7 @@ def se_compare_license(license_en, ocr_res_dict, field_list, is_auto): | ... | @@ -2519,7 +2519,7 @@ def se_compare_license(license_en, ocr_res_dict, field_list, is_auto): |
2519 | compare_log.info('{0} [bd_4962_price] [ori ocr_str:{1}] '.format(log_base, ocr_str)) | 2519 | compare_log.info('{0} [bd_4962_price] [ori ocr_str:{1}] '.format(log_base, ocr_str)) |
2520 | add_price = conf.BD_PRICE | 2520 | add_price = conf.BD_PRICE |
2521 | compare_log.info('{0} [bd_4962_price] [add_price:{1}] '.format(log_base, add_price)) | 2521 | compare_log.info('{0} [bd_4962_price] [add_price:{1}] '.format(log_base, add_price)) |
2522 | ocr_str = float(ocr_str) + float(add_price) | 2522 | ocr_str = str(float(ocr_str) + float(add_price)) |
2523 | compare_log.info('{0} [bd_4962_price] [final ocr_str:{1}] '.format(log_base, ocr_str)) | 2523 | compare_log.info('{0} [bd_4962_price] [final ocr_str:{1}] '.format(log_base, ocr_str)) |
2524 | else: | 2524 | else: |
2525 | ocr_str = ocr_res_list[res_idx].get(compare_logic[name][0]) | 2525 | ocr_str = ocr_res_list[res_idx].get(compare_logic[name][0]) | ... | ... |
-
Please register or sign in to post a comment