Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleOCR
提交
7ed238f7
P
PaddleOCR
项目概览
PaddlePaddle
/
PaddleOCR
接近 2 年 前同步成功
通知
1549
Star
32964
Fork
6643
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
108
列表
看板
标记
里程碑
合并请求
7
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleOCR
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
108
Issue
108
列表
看板
标记
里程碑
合并请求
7
合并请求
7
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
7ed238f7
编写于
11月 30, 2020
作者:
Z
zhoujun
提交者:
GitHub
12月 01, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update whl doc (#1289)
上级
cf4a4154
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
11 deletion
+16
-11
doc/doc_ch/whl.md
doc/doc_ch/whl.md
+7
-5
doc/doc_en/whl_en.md
doc/doc_en/whl_en.md
+9
-6
未找到文件。
doc/doc_ch/whl.md
浏览文件 @
7ed238f7
...
...
@@ -4,6 +4,8 @@
### 安装whl包
首先需要参照
[
安装文档
](
installation.md
)
安装paddlepaddle,然后开始安装paddleocr package
pip安装
```
bash
pip
install
paddleocr
...
...
@@ -166,7 +168,7 @@ paddleocr -h
*
检测+分类+识别全流程
```
bash
paddleocr
--image_dir
PaddleOCR/doc/imgs/11.jpg
--use_angle_cls
true
--cls
true
paddleocr
--image_dir
PaddleOCR/doc/imgs/11.jpg
--use_angle_cls
true
```
结果是一个list,每个item包含了文本框,文字和识别置信度
```
bash
...
...
@@ -190,7 +192,7 @@ paddleocr --image_dir PaddleOCR/doc/imgs/11.jpg
*
分类+识别
```
bash
paddleocr
--image_dir
PaddleOCR/doc/imgs_words/ch/word_1.jpg
--use_angle_cls
true
--
cls
true
--
det
false
paddleocr
--image_dir
PaddleOCR/doc/imgs_words/ch/word_1.jpg
--use_angle_cls
true
--det
false
```
结果是一个list,每个item只包含识别结果和识别置信度
...
...
@@ -222,7 +224,7 @@ paddleocr --image_dir PaddleOCR/doc/imgs_words/ch/word_1.jpg --det false
*
单独执行分类
```
bash
paddleocr
--image_dir
PaddleOCR/doc/imgs_words/ch/word_1.jpg
--use_angle_cls
true
--
cls
true
--
det
false
--rec
false
paddleocr
--image_dir
PaddleOCR/doc/imgs_words/ch/word_1.jpg
--use_angle_cls
true
--det
false
--rec
false
```
结果是一个list,每个item只包含分类结果和分类置信度
...
...
@@ -258,7 +260,7 @@ im_show.save('result.jpg')
### 通过命令行使用
```
bash
paddleocr
--image_dir
PaddleOCR/doc/imgs/11.jpg
--det_model_dir
{
your_det_model_dir
}
--rec_model_dir
{
your_rec_model_dir
}
--rec_char_dict_path
{
your_rec_char_dict_path
}
--cls_model_dir
{
your_cls_model_dir
}
--use_angle_cls
true
--cls
true
paddleocr
--image_dir
PaddleOCR/doc/imgs/11.jpg
--det_model_dir
{
your_det_model_dir
}
--rec_model_dir
{
your_rec_model_dir
}
--rec_char_dict_path
{
your_rec_char_dict_path
}
--cls_model_dir
{
your_cls_model_dir
}
--use_angle_cls
true
```
## 参数说明
...
...
@@ -295,4 +297,4 @@ paddleocr --image_dir PaddleOCR/doc/imgs/11.jpg --det_model_dir {your_det_model_
| lang | 模型语言类型,目前支持 中文(ch)和英文(en) | ch |
| det | 前向时使用启动检测 | TRUE |
| rec | 前向时是否启动识别 | TRUE |
| cls | 前向时是否启动分类
| FALSE |
| cls | 前向时是否启动分类
, 此参数仅存在于
`代码使用`
模式
| FALSE |
doc/doc_en/whl_en.md
浏览文件 @
7ed238f7
...
...
@@ -2,6 +2,9 @@
## Get started quickly
### install package
First, you need to refer to
[
installation document
](
installation_en.md
)
to install paddlepaddle, and then start to install paddleocr package
install by pypi
```
bash
pip
install
paddleocr
...
...
@@ -172,7 +175,7 @@ paddleocr -h
*
detection classification and recognition
```
bash
paddleocr
--image_dir
PaddleOCR/doc/imgs_en/img_12.jpg
--use_angle_cls
true
-
cls
true
-
-lang
en
paddleocr
--image_dir
PaddleOCR/doc/imgs_en/img_12.jpg
--use_angle_cls
true
--lang
en
```
Output will be a list, each item contains bounding box, text and recognition confidence
...
...
@@ -198,7 +201,7 @@ Output will be a list, each item contains bounding box, text and recognition con
*
classification and recognition
```
bash
paddleocr
--image_dir
PaddleOCR/doc/imgs_words_en/word_10.png
--use_angle_cls
true
-
cls
true
-
-det
false
--lang
en
paddleocr
--image_dir
PaddleOCR/doc/imgs_words_en/word_10.png
--use_angle_cls
true
--det
false
--lang
en
```
Output will be a list, each item contains text and recognition confidence
...
...
@@ -221,7 +224,7 @@ Output will be a list, each item only contains bounding box
*
only recognition
```
bash
paddleocr
--image_dir
PaddleOCR/doc/imgs_words_en/word_10.png
--det
false
--
cls
false
--
lang
en
paddleocr
--image_dir
PaddleOCR/doc/imgs_words_en/word_10.png
--det
false
--lang
en
```
Output will be a list, each item contains text and recognition confidence
...
...
@@ -231,7 +234,7 @@ Output will be a list, each item contains text and recognition confidence
*
only classification
```
bash
paddleocr
--image_dir
PaddleOCR/doc/imgs_words_en/word_10.png
--use_angle_cls
true
-
cls
true
-
-det
false
--rec
false
paddleocr
--image_dir
PaddleOCR/doc/imgs_words_en/word_10.png
--use_angle_cls
true
--det
false
--rec
false
```
Output will be a list, each item contains classification result and confidence
...
...
@@ -268,7 +271,7 @@ im_show.save('result.jpg')
### Use by command line
```
bash
paddleocr
--image_dir
PaddleOCR/doc/imgs/11.jpg
--det_model_dir
{
your_det_model_dir
}
--rec_model_dir
{
your_rec_model_dir
}
--rec_char_dict_path
{
your_rec_char_dict_path
}
--cls_model_dir
{
your_cls_model_dir
}
--use_angle_cls
true
--cls
true
paddleocr
--image_dir
PaddleOCR/doc/imgs/11.jpg
--det_model_dir
{
your_det_model_dir
}
--rec_model_dir
{
your_rec_model_dir
}
--rec_char_dict_path
{
your_rec_char_dict_path
}
--cls_model_dir
{
your_cls_model_dir
}
--use_angle_cls
true
```
## Parameter Description
...
...
@@ -305,4 +308,4 @@ paddleocr --image_dir PaddleOCR/doc/imgs/11.jpg --det_model_dir {your_det_model_
| lang | The support language, now only Chinese(ch)、English(en)、French(french)、German(german)、Korean(korean)、Japanese(japan) are supported | ch |
| det | Enable detction when
`ppocr.ocr`
func exec | TRUE |
| rec | Enable recognition when
`ppocr.ocr`
func exec | TRUE |
| cls | Enable classification when
`ppocr.ocr`
func exec | FALSE |
| cls | Enable classification when
`ppocr.ocr`
func exec
,this parameter only exists in
`code usage`
mode
| FALSE |
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录