d8413b41 by 冯轩

MOD:金额改成字符串才能进入比对

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