fix rp slice
Showing
1 changed file
with
5 additions
and
0 deletions
... | @@ -413,6 +413,10 @@ def ca_compare_license(license_en, ocr_res_dict, field_list): | ... | @@ -413,6 +413,10 @@ def ca_compare_license(license_en, ocr_res_dict, field_list): |
413 | is_find = True | 413 | is_find = True |
414 | section_img_info[consts.SECTION_IMG_PATH_KEY] = ocr_res_list[res_idx].get(consts.SECTION_IMG_PATH_KEY, '') | 414 | section_img_info[consts.SECTION_IMG_PATH_KEY] = ocr_res_list[res_idx].get(consts.SECTION_IMG_PATH_KEY, '') |
415 | section_img_info[consts.ALL_POSITION_KEY] = ocr_res_list[res_idx].get(consts.ALL_POSITION_KEY, {}) | 415 | section_img_info[consts.ALL_POSITION_KEY] = ocr_res_list[res_idx].get(consts.ALL_POSITION_KEY, {}) |
416 | if special_expiry_date: | ||
417 | section_img_info[consts.SECTION_IMG_PATH_KEY_2] = ocr_res_list[res_idx].get( | ||
418 | consts.SECTION_IMG_PATH_KEY_2, '') | ||
419 | section_img_info[consts.ALL_POSITION_KEY_2] = ocr_res_list[res_idx].get(consts.ALL_POSITION_KEY_2, {}) | ||
416 | 420 | ||
417 | # 过期期限特殊处理 | 421 | # 过期期限特殊处理 |
418 | if special_expiry_date and name == 'idExpiryDate' and result == consts.RESULT_N: | 422 | if special_expiry_date and name == 'idExpiryDate' and result == consts.RESULT_N: |
... | @@ -1464,6 +1468,7 @@ def se_compare_license(license_en, ocr_res_dict, field_list): | ... | @@ -1464,6 +1468,7 @@ def se_compare_license(license_en, ocr_res_dict, field_list): |
1464 | if special_expiry_date: | 1468 | if special_expiry_date: |
1465 | section_img_info[consts.SECTION_IMG_PATH_KEY_2] = ocr_res_list[res_idx].get( | 1469 | section_img_info[consts.SECTION_IMG_PATH_KEY_2] = ocr_res_list[res_idx].get( |
1466 | consts.SECTION_IMG_PATH_KEY_2, '') | 1470 | consts.SECTION_IMG_PATH_KEY_2, '') |
1471 | section_img_info[consts.ALL_POSITION_KEY_2] = ocr_res_list[res_idx].get(consts.ALL_POSITION_KEY_2, {}) | ||
1467 | 1472 | ||
1468 | # 过期期限特殊处理 | 1473 | # 过期期限特殊处理 |
1469 | if special_expiry_date and name == 'idExpiryDate' and result == consts.RESULT_N: | 1474 | if special_expiry_date and name == 'idExpiryDate' and result == consts.RESULT_N: | ... | ... |
-
Please register or sign in to post a comment