README.md 776 字节
Newer Older
B
barriery 已提交
1
# OCR Pipeline WebService 
B
barriery 已提交
2 3 4

(English|[简体中文](./README_CN.md))

B
barriery 已提交
5
This document will take OCR as an example to show how to use Pipeline WebService to start multi-model tandem services.
B
barriery 已提交
6

B
barriery 已提交
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
## Get Model
```
python -m paddle_serving_app.package --get_model ocr_rec
tar -xzvf ocr_rec.tar.gz
python -m paddle_serving_app.package --get_model ocr_det
tar -xzvf ocr_det.tar.gz
```

## Get Dataset (Optional)
```
wget --no-check-certificate https://paddle-serving.bj.bcebos.com/ocr/test_imgs.tar
tar xf test_imgs.tar
```

## Start Service
B
barriery 已提交
22 23 24 25 26 27 28 29 30 31 32
```
python web_service.py &>log.txt &
```

## Test
```
python pipeline_http_client.py
```

<!--
## More (PipelineServing)
B
barriery 已提交
33 34

## Client Prediction
B
barriery 已提交
35 36 37 38 39 40 41

### RPC
```
python pipeline_rpc_client.py
```

### HTTP
B
barriery 已提交
42
```
B
barriery 已提交
43
python pipeline_http_client.py
B
barriery 已提交
44
```
B
barriery 已提交
45
-->