Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
s920243400
PaddleOCR
提交
b423defc
P
PaddleOCR
项目概览
s920243400
/
PaddleOCR
与 Fork 源项目一致
Fork自
PaddlePaddle / PaddleOCR
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleOCR
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
b423defc
编写于
7月 25, 2020
作者:
D
dyning
提交者:
GitHub
7月 25, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #421 from littletomatodonkey/fix_hub_doc
fix hub serving doc
上级
41ecf41d
791f6239
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
53 addition
and
19 deletion
+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
未找到文件。
doc/doc_ch/serving.md
浏览文件 @
b423defc
...
@@ -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
\h
ubserving
\o
cr_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
```
doc/doc_en/serving_en.md
浏览文件 @
b423defc
...
@@ -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
\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
### 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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录