e9d30c77 by 周伟奇

fix vinno

1 parent ba0c4726
...@@ -116,6 +116,7 @@ def usedcar_info_compare(info_dict, ocr_res_dict, ocr_field, compare_list, res_s ...@@ -116,6 +116,7 @@ def usedcar_info_compare(info_dict, ocr_res_dict, ocr_field, compare_list, res_s
116 is_find = True 116 is_find = True
117 info_dict[compare_tuple[4]] = compare_res 117 info_dict[compare_tuple[4]] = compare_res
118 if input_str is not None: 118 if input_str is not None:
119 if idx != 0:
119 if ocr_str is None or ocr_output is None: 120 if ocr_str is None or ocr_output is None:
120 del info_dict[compare_tuple[0]] 121 del info_dict[compare_tuple[0]]
121 else: 122 else:
...@@ -224,6 +225,7 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id): ...@@ -224,6 +225,7 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id):
224 if mvc_find is True and dl_find is False: 225 if mvc_find is True and dl_find is False:
225 vino = dl_vinos[0] if len(dl_vinos) > 0 else '' 226 vino = dl_vinos[0] if len(dl_vinos) > 0 else ''
226 order_usedcar_info[consts.PCUSD_MVC[0][0]] = vino 227 order_usedcar_info[consts.PCUSD_MVC[0][0]] = vino
228 order_usedcar_info[consts.PCUSD_MVC[0][4]] = consts.RESULT_N
227 elif mvc_find is False and dl_find is True: 229 elif mvc_find is False and dl_find is True:
228 vino = mvc_vinos[0] if len(mvc_vinos) > 0 else '' 230 vino = mvc_vinos[0] if len(mvc_vinos) > 0 else ''
229 order_usedcar_info[consts.PCUSD_MVC[0][0]] = vino 231 order_usedcar_info[consts.PCUSD_MVC[0][0]] = vino
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!