From f9f75747112c2c99f877df9822b4456ac08b1d97 Mon Sep 17 00:00:00 2001 From: tink2123 Date: Fri, 8 Apr 2022 03:46:26 +0000 Subject: [PATCH] fix typo --- deploy/pdserving/ocr_cpp_client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/deploy/pdserving/ocr_cpp_client.py b/deploy/pdserving/ocr_cpp_client.py index 415ba4ea..cb429439 100755 --- a/deploy/pdserving/ocr_cpp_client.py +++ b/deploy/pdserving/ocr_cpp_client.py @@ -49,5 +49,6 @@ for img_file in os.listdir(test_img_dir): feed={"x": image}, fetch=["save_infer_model/scale_0.tmp_1"], batch=True) one_batch_res = ocr_reader.postprocess(fetch_map, with_score=True) for res in one_batch_res: + res_list.append(res[0]) res = {"res": str(res_list)} print(res) -- GitLab