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
df6120a0
Commit
df6120a0
authored
Apr 29, 2022
by
lubin10
Browse files
add image exmaple
parent
c657cf86
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
doc/doc_ch/algorithm_rec_rare.md
doc/doc_ch/algorithm_rec_rare.md
+9
-1
doc/doc_ch/algorithm_rec_rosetta.md
doc/doc_ch/algorithm_rec_rosetta.md
+9
-1
No files found.
doc/doc_ch/algorithm_rec_rare.md
View file @
df6120a0
...
@@ -77,8 +77,16 @@ python3 tools/export_model.py -c configs/rec/rec_r34_vd_tps_bilstm_att.yml -o Gl
...
@@ -77,8 +77,16 @@ python3 tools/export_model.py -c configs/rec/rec_r34_vd_tps_bilstm_att.yml -o Gl
RARE文本识别模型推理,可以执行如下命令:
RARE文本识别模型推理,可以执行如下命令:
```
shell
```
shell
python3 tools/infer/predict_rec.py
--image_dir
=
"doc/imgs_words/en/word_1.png"
--rec_model_dir
=
"./inference/rec_rare/"
python3 tools/infer/predict_rec.py
--image_dir
=
"doc/imgs_words/en/word_1.png"
--rec_model_dir
=
"./inference/rec_rare/"
--rec_image_shape
=
"3, 32, 100"
--rec_char_dict_path
=
"./ppocr/utils/ic15_dict.txt"
```
```
推理结果如下所示:

```
Predicts of doc/imgs_words/en/word_1.png:('joint ', 0.9999969601631165)
```
<a
name=
"4-2"
></a>
<a
name=
"4-2"
></a>
### 4.2 C++推理
### 4.2 C++推理
...
...
doc/doc_ch/algorithm_rec_rosetta.md
View file @
df6120a0
...
@@ -79,7 +79,15 @@ python3 tools/export_model.py -c configs/rec/rec_r34_vd_none_none_ctc.yml -o Glo
...
@@ -79,7 +79,15 @@ python3 tools/export_model.py -c configs/rec/rec_r34_vd_none_none_ctc.yml -o Glo
Rosetta文本识别模型推理,可以执行如下命令:
Rosetta文本识别模型推理,可以执行如下命令:
```
shell
```
shell
python3 tools/infer/predict_rec.py
--image_dir
=
"doc/imgs_words/en/word_1.png"
--rec_model_dir
=
"./inference/rec_rosetta/"
python3 tools/infer/predict_rec.py
--image_dir
=
"doc/imgs_words/en/word_1.png"
--rec_model_dir
=
"./inference/rec_rosetta/"
--rec_image_shape
=
"3, 32, 100"
--rec_char_dict_path
=
"./ppocr/utils/ic15_dict.txt"
```
推理结果如下所示:

```
Predicts of doc/imgs_words/en/word_1.png:('joint', 0.9999982714653015)
```
```
<a
name=
"4-2"
></a>
<a
name=
"4-2"
></a>
...
...
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