fix vinno
Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment