diff --git a/deploy/pdserving/ocr_cpp_client.py b/deploy/pdserving/ocr_cpp_client.py index 415ba4ea067cb502f5e466dbb2411cd3811db4ee..cb42943923879d1138e065881a15da893a505083 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)