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
c7ee8e50
Commit
c7ee8e50
authored
Jul 01, 2022
by
tink2123
Browse files
fix inference doc
parent
9b306f2d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
doc/doc_ch/inference_ppocr.md
doc/doc_ch/inference_ppocr.md
+6
-3
doc/doc_en/inference_ppocr_en.md
doc/doc_en/inference_ppocr_en.md
+3
-0
No files found.
doc/doc_ch/inference_ppocr.md
View file @
c7ee8e50
...
@@ -7,7 +7,8 @@
...
@@ -7,7 +7,8 @@
-
[
1. 文本检测模型推理
](
#1-文本检测模型推理
)
-
[
1. 文本检测模型推理
](
#1-文本检测模型推理
)
-
[
2. 文本识别模型推理
](
#2-文本识别模型推理
)
-
[
2. 文本识别模型推理
](
#2-文本识别模型推理
)
-
[
2.1 超轻量中文识别模型推理
](
#21-超轻量中文识别模型推理
)
-
[
2.1 超轻量中文识别模型推理
](
#21-超轻量中文识别模型推理
)
-
[
2.2 多语言模型的推理
](
#22-多语言模型的推理
)
-
[
2.2 英文识别模型推理
](
#22-英文识别模型推理
)
-
[
2.3 多语言模型的推理
](
#23-多语言模型的推理
)
-
[
3. 方向分类模型推理
](
#3-方向分类模型推理
)
-
[
3. 方向分类模型推理
](
#3-方向分类模型推理
)
-
[
4. 文本检测、方向分类和文字识别串联推理
](
#4-文本检测方向分类和文字识别串联推理
)
-
[
4. 文本检测、方向分类和文字识别串联推理
](
#4-文本检测方向分类和文字识别串联推理
)
...
@@ -78,9 +79,9 @@ python3 tools/infer/predict_rec.py --image_dir="./doc/imgs_words/ch/word_4.jpg"
...
@@ -78,9 +79,9 @@ python3 tools/infer/predict_rec.py --image_dir="./doc/imgs_words/ch/word_4.jpg"
Predicts of ./doc/imgs_words/ch/word_4.jpg:
(
'实力活力'
, 0.9956803321838379
)
Predicts of ./doc/imgs_words/ch/word_4.jpg:
(
'实力活力'
, 0.9956803321838379
)
```
```
<a
name=
"英文模型
的
推理"
></a>
<a
name=
"英文
识别
模型推理"
></a>
### 2.2 英文模型
的
推理
### 2.2 英文
识别
模型推理
英文识别模型推理,可以执行如下命令, 注意修改字典路径:
英文识别模型推理,可以执行如下命令, 注意修改字典路径:
...
@@ -91,6 +92,8 @@ tar xf en_PP-OCRv3_det_infer.tar
...
@@ -91,6 +92,8 @@ tar xf en_PP-OCRv3_det_infer.tar
python3 tools/infer/predict_rec.py --image_dir="./doc/imgs_words/en/word_1.png" --rec_model_dir="./en_PP-OCRv3_det_infer/" --rec_char_dict_path="ppocr/utils/en_dict.txt"
python3 tools/infer/predict_rec.py --image_dir="./doc/imgs_words/en/word_1.png" --rec_model_dir="./en_PP-OCRv3_det_infer/" --rec_char_dict_path="ppocr/utils/en_dict.txt"
```
```

执行命令后,上图的预测结果为:
执行命令后,上图的预测结果为:
```
```
...
...
doc/doc_en/inference_ppocr_en.md
View file @
c7ee8e50
...
@@ -89,6 +89,9 @@ tar xf en_PP-OCRv3_det_infer.tar
...
@@ -89,6 +89,9 @@ tar xf en_PP-OCRv3_det_infer.tar
python3 tools/infer/predict_rec.py --image_dir="./doc/imgs_words/en/word_1.png" --rec_model_dir="./en_PP-OCRv3_det_infer/" --rec_char_dict_path="ppocr/utils/en_dict.txt"
python3 tools/infer/predict_rec.py --image_dir="./doc/imgs_words/en/word_1.png" --rec_model_dir="./en_PP-OCRv3_det_infer/" --rec_char_dict_path="ppocr/utils/en_dict.txt"
```
```

After executing the command, the prediction result of the above figure is:
After executing the command, the prediction result of the above figure is:
```
```
...
...
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