Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
791f6239
"vscode:/vscode.git/clone" did not exist on "f7777f489e93102a0b62c4a01850343be87d3db6"
Commit
791f6239
authored
Jul 25, 2020
by
littletomatodonkey
Browse files
fix hub serving doc
parent
41ecf41d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
19 deletions
+53
-19
doc/doc_ch/serving.md
doc/doc_ch/serving.md
+26
-11
doc/doc_en/serving_en.md
doc/doc_en/serving_en.md
+27
-8
No files found.
doc/doc_ch/serving.md
View file @
791f6239
...
...
@@ -28,12 +28,16 @@ deploy/hubserving/ocr_system/
# 安装paddlehub
pip3
install
paddlehub
--upgrade
-i
https://pypi.tuna.tsinghua.edu.cn/simple
# 设置环境变量
#
在Linux下
设置环境变量
export
PYTHONPATH
=
.
# 在Windows下设置环境变量
SET
PYTHONPATH
=
.
```
### 2. 安装服务模块
PaddleOCR提供3种服务模块,根据需要安装所需模块。如:
PaddleOCR提供3种服务模块,根据需要安装所需模块。
*
在Linux环境下,安装示例如下:
安装检测服务模块:
```
hub install deploy/hubserving/ocr_det/```
...
...
@@ -44,6 +48,18 @@ PaddleOCR提供3种服务模块,根据需要安装所需模块。如:
或,安装检测+识别串联服务模块:
```
hub install deploy/hubserving/ocr_system/
```
* 在Windows环境下(文件夹的分隔符为`\`),安装示例如下:
安装检测服务模块:
```
hub install deploy
\h
ubserving
\o
cr_det
\`
``
或,安装识别服务模块:
```hub install deploy\hubserving\ocr_rec\```
或,安装检测+识别串联服务模块:
```hub install deploy\hubserving\ocr_system\```
### 3. 启动服务
#### 方式1. 命令行命令启动(仅支持CPU)
**启动命令:**
...
...
@@ -157,4 +173,3 @@ hub serving start -c deploy/hubserving/ocr_system/config.json
- 5、重新启动服务
```
hub serving start -m ocr_system
```
doc/doc_en/serving_en.md
View file @
791f6239
...
...
@@ -29,12 +29,16 @@ The following steps take the 2-stage series service as an example. If only the d
# Install paddlehub
pip3
install
paddlehub
--upgrade
-i
https://pypi.tuna.tsinghua.edu.cn/simple
# Set environment variables
# Set environment variables
on Linux
export
PYTHONPATH
=
.
# Set environment variables on Windows
SET
PYTHONPATH
=
.
```
### 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:
```
shell
...
...
@@ -49,6 +53,21 @@ Or, install the 2-stage series service module:
hub
install
deploy/hubserving/ocr_system/
```
*
On Windows platform, the examples are as follows.
Install the detection service module:
```
shell
hub
install
deploy
\h
ubserving
\o
cr_det
\
```
Or, install the recognition service module:
```
shell
hub
install
deploy
\h
ubserving
\o
cr_rec
\
```
Or, install the 2-stage series service module:
```
shell
hub
install
deploy
\h
ubserving
\o
cr_system
\
### 3. Start service
#### Way 1. Start with command line parameters (CPU only)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment