未验证 提交 b423defc 编写于 作者: D dyning 提交者: GitHub

Merge pull request #421 from littletomatodonkey/fix_hub_doc

fix hub serving doc
...@@ -28,12 +28,16 @@ deploy/hubserving/ocr_system/ ...@@ -28,12 +28,16 @@ deploy/hubserving/ocr_system/
# 安装paddlehub # 安装paddlehub
pip3 install paddlehub --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple pip3 install paddlehub --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple
# 设置环境变量 # 在Linux下设置环境变量
export PYTHONPATH=. export PYTHONPATH=.
# 在Windows下设置环境变量
SET PYTHONPATH=.
``` ```
### 2. 安装服务模块 ### 2. 安装服务模块
PaddleOCR提供3种服务模块,根据需要安装所需模块。如: PaddleOCR提供3种服务模块,根据需要安装所需模块。
* 在Linux环境下,安装示例如下:
安装检测服务模块: 安装检测服务模块:
```hub install deploy/hubserving/ocr_det/``` ```hub install deploy/hubserving/ocr_det/```
...@@ -44,6 +48,18 @@ PaddleOCR提供3种服务模块,根据需要安装所需模块。如: ...@@ -44,6 +48,18 @@ PaddleOCR提供3种服务模块,根据需要安装所需模块。如:
或,安装检测+识别串联服务模块: 或,安装检测+识别串联服务模块:
```hub install deploy/hubserving/ocr_system/``` ```hub install deploy/hubserving/ocr_system/```
* 在Windows环境下(文件夹的分隔符为`\`),安装示例如下:
安装检测服务模块:
```hub install deploy\hubserving\ocr_det\```
或,安装识别服务模块:
```hub install deploy\hubserving\ocr_rec\```
或,安装检测+识别串联服务模块:
```hub install deploy\hubserving\ocr_system\```
### 3. 启动服务 ### 3. 启动服务
#### 方式1. 命令行命令启动(仅支持CPU) #### 方式1. 命令行命令启动(仅支持CPU)
**启动命令:** **启动命令:**
...@@ -157,4 +173,3 @@ hub serving start -c deploy/hubserving/ocr_system/config.json ...@@ -157,4 +173,3 @@ hub serving start -c deploy/hubserving/ocr_system/config.json
- 5、重新启动服务 - 5、重新启动服务
```hub serving start -m ocr_system``` ```hub serving start -m ocr_system```
...@@ -29,12 +29,16 @@ The following steps take the 2-stage series service as an example. If only the d ...@@ -29,12 +29,16 @@ The following steps take the 2-stage series service as an example. If only the d
# Install paddlehub # Install paddlehub
pip3 install paddlehub --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple pip3 install paddlehub --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple
# Set environment variables # Set environment variables on Linux
export PYTHONPATH=. export PYTHONPATH=.
# Set environment variables on Windows
SET PYTHONPATH=.
``` ```
### 2. Install Service Module ### 2. Install Service Module
PaddleOCR provides 3 kinds of service modules, install the required modules according to your needs. Such as: PaddleOCR provides 3 kinds of service modules, install the required modules according to your needs.
* On Linux platform, the examples are as follows.
Install the detection service module: Install the detection service module:
```shell ```shell
...@@ -49,6 +53,21 @@ Or, install the 2-stage series service module: ...@@ -49,6 +53,21 @@ Or, install the 2-stage series service module:
hub install deploy/hubserving/ocr_system/ hub install deploy/hubserving/ocr_system/
``` ```
* On Windows platform, the examples are as follows.
Install the detection service module:
```shell
hub install deploy\hubserving\ocr_det\
```
Or, install the recognition service module:
```shell
hub install deploy\hubserving\ocr_rec\
```
Or, install the 2-stage series service module:
```shell
hub install deploy\hubserving\ocr_system\
### 3. Start service ### 3. Start service
#### Way 1. Start with command line parameters (CPU only) #### Way 1. Start with command line parameters (CPU only)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册