diff --git a/deploy/paddleserving/recognition/pipeline_rpc_client.py b/deploy/paddleserving/recognition/pipeline_rpc_client.py index 8a3257dc0af899b8fa55b667c15b346bcdc75009..a7037c34f91c369e40c2967f386783176950b7b7 100644 --- a/deploy/paddleserving/recognition/pipeline_rpc_client.py +++ b/deploy/paddleserving/recognition/pipeline_rpc_client.py @@ -19,11 +19,13 @@ import base64 client = PipelineClient() client.connect(['127.0.0.1:9994']) -imgpath = "daoxiangcunjinzhubing_6.jpg" +imgpath = "../../drink_dataset_v1.0/test_images/001.jpeg" + def cv2_to_base64(image): return base64.b64encode(image).decode('utf8') + if __name__ == "__main__": with open(imgpath, 'rb') as file: image_data = file.read()