fix vinno
Showing
1 changed file
with
6 additions
and
4 deletions
| ... | @@ -116,10 +116,11 @@ def usedcar_info_compare(info_dict, ocr_res_dict, ocr_field, compare_list, res_s | ... | @@ -116,10 +116,11 @@ 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 ocr_str is None or ocr_output is None: | 119 | if idx != 0: |
| 120 | del info_dict[compare_tuple[0]] | 120 | if ocr_str is None or ocr_output is None: |
| 121 | else: | 121 | del info_dict[compare_tuple[0]] |
| 122 | info_dict[compare_tuple[0]] = ocr_output | 122 | else: |
| 123 | info_dict[compare_tuple[0]] = ocr_output | ||
| 123 | res_set.add(compare_res) | 124 | res_set.add(compare_res) |
| 124 | if not is_find: | 125 | if not is_find: |
| 125 | res_set.add(consts.RESULT_N) | 126 | res_set.add(consts.RESULT_N) |
| ... | @@ -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