Merge branch 'feature/cms4' into feature/0918
Showing
1 changed file
with
9 additions
and
0 deletions
| ... | @@ -370,6 +370,15 @@ def ca_compare_license(license_en, ocr_res_dict, field_list): | ... | @@ -370,6 +370,15 @@ def ca_compare_license(license_en, ocr_res_dict, field_list): |
| 370 | ocr_res_str = ocr_res_dict.get(ocr_field) | 370 | ocr_res_str = ocr_res_dict.get(ocr_field) |
| 371 | if ocr_res_str is not None: | 371 | if ocr_res_str is not None: |
| 372 | ocr_res_list = json.loads(ocr_res_str) | 372 | ocr_res_list = json.loads(ocr_res_str) |
| 373 | |||
| 374 | # 副页去除 TODO 3/4页去除 | ||
| 375 | if ocr_field == consts.DL_OCR_FIELD: | ||
| 376 | tmp_list = [] | ||
| 377 | for res in ocr_res_list: | ||
| 378 | if compare_logic['vinNo'][0] in res: | ||
| 379 | tmp_list.append(res) | ||
| 380 | ocr_res_list = tmp_list | ||
| 381 | |||
| 373 | length = len(ocr_res_list) | 382 | length = len(ocr_res_list) |
| 374 | 383 | ||
| 375 | # 身份证、居住证 过期期限特殊处理 | 384 | # 身份证、居住证 过期期限特殊处理 | ... | ... |
-
Please register or sign in to post a comment