1de332fe by 周伟奇

fix rp slice

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