fix dl
Showing
1 changed file
with
9 additions
and
0 deletions
... | @@ -292,6 +292,15 @@ def ca_compare_license(license_en, ocr_res_dict, field_list): | ... | @@ -292,6 +292,15 @@ def ca_compare_license(license_en, ocr_res_dict, field_list): |
292 | ocr_res_str = ocr_res_dict.get(ocr_field) | 292 | ocr_res_str = ocr_res_dict.get(ocr_field) |
293 | if ocr_res_str is not None: | 293 | if ocr_res_str is not None: |
294 | ocr_res_list = json.loads(ocr_res_str) | 294 | ocr_res_list = json.loads(ocr_res_str) |
295 | |||
296 | # 副页去除 TODO 3/4页去除 | ||
297 | if ocr_field == consts.DL_OCR_FIELD: | ||
298 | tmp_list = [] | ||
299 | for res in ocr_res_list: | ||
300 | if compare_logic['vinNo'][0] in res: | ||
301 | tmp_list.append(res) | ||
302 | ocr_res_list = tmp_list | ||
303 | |||
295 | length = len(ocr_res_list) | 304 | length = len(ocr_res_list) |
296 | 305 | ||
297 | # 身份证、居住证 过期期限特殊处理 | 306 | # 身份证、居住证 过期期限特殊处理 | ... | ... |
-
Please register or sign in to post a comment