7d6ce4df by 周伟奇

fix bug

1 parent 17c207a9
......@@ -212,7 +212,7 @@ class Command(BaseCommand, LoggerMixin):
}
license_summary.setdefault(classify, []).append(dda_ocr_result)
if classify == consts.MVC_CLASSIFY: # 车辆登记证 3/4页结果整合
elif classify == consts.MVC_CLASSIFY: # 车辆登记证 3/4页结果整合
for mvc_dict in license_data:
try:
mvc_page = mvc_dict.pop('page')
......@@ -249,7 +249,7 @@ class Command(BaseCommand, LoggerMixin):
del mvc_res
license_summary.setdefault(classify, []).extend(license_data)
if classify == consts.IC_CLASSIFY: # 身份证真伪
elif classify == consts.IC_CLASSIFY: # 身份证真伪
for id_card_dict in license_data:
try:
base64_img = id_card_dict.pop('base64_img')
......@@ -302,6 +302,8 @@ class Command(BaseCommand, LoggerMixin):
if len(ic_name) > 0 and len(ic_id) > 0:
dda_id_bc_mapping.setdefault(consts.IC_FIELD, []).append((ic_name, ic_id, img_path))
license_summary.setdefault(classify, []).extend(license_data)
else:
license_summary.setdefault(classify, []).extend(license_data)
def license2_process(self, ocr_res_2, license_summary, pid, classify, res_list, pno, ino, part_idx, img_path, do_dda, dda_id_bc_mapping):
if ocr_res_2.get('ErrorCode') in consts.SUCCESS_CODE_SET:
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!