fix mvc
Showing
1 changed file
with
9 additions
and
0 deletions
... | @@ -88,6 +88,15 @@ def usedcar_info_compare(info_dict, ocr_res_dict, ocr_field, compare_list, res_s | ... | @@ -88,6 +88,15 @@ def usedcar_info_compare(info_dict, ocr_res_dict, ocr_field, compare_list, res_s |
88 | ocr_res_str = ocr_res_dict.get(ocr_field) | 88 | ocr_res_str = ocr_res_dict.get(ocr_field) |
89 | if ocr_res_str is not None: | 89 | if ocr_res_str is not None: |
90 | ocr_res_list = json.loads(ocr_res_str) | 90 | ocr_res_list = json.loads(ocr_res_str) |
91 | |||
92 | # 车辆登记证3、4页去除 | ||
93 | if ocr_field == consts.MVC_OCR_FIELD: | ||
94 | tmp_list = [] | ||
95 | for res in ocr_res_list: | ||
96 | if res.get(compare_list[0][1]) is not None: | ||
97 | tmp_list.append(res) | ||
98 | ocr_res_list = tmp_list | ||
99 | |||
91 | length = len(ocr_res_list) | 100 | length = len(ocr_res_list) |
92 | 101 | ||
93 | for ocr_res in ocr_res_list: | 102 | for ocr_res in ocr_res_list: | ... | ... |
-
Please register or sign in to post a comment