diff --git a/deploy/pdserving/imgs/pipeline_result.png b/deploy/pdserving/imgs/pipeline_result.png index 1058daa9b2b47ea88b835d7b2b3c49f131833f39..ba7f24a2cce6e1fa9889b175fe83a5944e8b7c67 100644 Binary files a/deploy/pdserving/imgs/pipeline_result.png and b/deploy/pdserving/imgs/pipeline_result.png differ diff --git a/deploy/pdserving/pipeline_http_client.py b/deploy/pdserving/pipeline_http_client.py index e49174f1f0a7850d185ad0695ae4d741bb55b357..7bc4d882e5039640e138f3e634b2c33fc6a8e48c 100644 --- a/deploy/pdserving/pipeline_http_client.py +++ b/deploy/pdserving/pipeline_http_client.py @@ -46,9 +46,14 @@ for idx, img_file in enumerate(os.listdir(test_img_dir)): # check success if result["err_no"] == 0: ocr_result = result["value"][0] - for item in eval(ocr_result): - # return transcription and points - print("{}, {}".format(item[0], item[1])) + try: + for item in eval(ocr_result): + # return transcription and points + print("{}, {}".format(item[0], item[1])) + except Exception as e: + print("No results") + continue + else: print( "For details about error message, see PipelineServingLogs/pipeline.log"