This post解释了如何通过Docker和HTTP的TensorFlow服务发布和消费图像的模型。客户端在没有Docker的情况下是一样的。你可以找到这篇文章使用here的代码。
基本上,您必须使用格式为{"instances" : [{"b64": <image_in_jpg_in_base64>}]}的JSON发布到http://host:port/v1/models/${MODEL_NAME}:predict。您可以了解更多关于TF Serving RESTful接口here的信息。