From b3502aca0a98b1f09e6a6f4c0af2f61b89921e52 Mon Sep 17 00:00:00 2001
From: Dong Daxiang <35550832+guru4elephant@users.noreply.github.com>
Date: Fri, 20 Mar 2020 00:06:52 +0800
Subject: [PATCH] Update README.md
---
README.md | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/README.md b/README.md
index bae5bb38..6f8848b8 100644
--- a/README.md
+++ b/README.md
@@ -125,6 +125,28 @@ curl -H "Content-Type:application/json" -X POST -d '{"words": "我爱北京天
Image Classification
+- **Description**: Image classification trained with Imagenet dataset. A label and corresponding probability will be returned.
+
+- **Download**:
+``` shell
+wget --no-check-certificate https://paddle-serving.bj.bcebos.com/imagenet-example/imagenet_demo.tar.gz
+```
+- **Host web service**:
+``` shell
+tar -xzf imagenet_demo.tar.gz
+python image_classification_service_demo.py resnet50_serving_model
+```
+- **Request sample**:
+``` shell
+curl -H "Content-Type:application/json" -X POST -d '{"url": "https://paddle-serving.bj.bcebos.com/imagenet-example/daisy.jpg", "fetch": ["score"]}' http://127.0.0.1:9292/image/prediction
+```
+- **Request result**:
+``` shell
+{"label":"daisy","prob":0.9341403245925903}
+```
+
+
+
Document
--
GitLab