update inference doc
This commit is contained in:
parent
3fad830057
commit
41b10e633b
|
@ -91,14 +91,14 @@ python3 tools/infer/predict_det.py --image_dir="./doc/imgs_en/img_10.jpg" --det_
|
||||||
超轻量中文识别模型推理,可以执行如下命令:
|
超轻量中文识别模型推理,可以执行如下命令:
|
||||||
|
|
||||||
```
|
```
|
||||||
python3 tools/infer/predict_rec.py --image_dir="./doc/imgs_words/word_4.jpg" --rec_model_dir="./inference/rec/"
|
python3 tools/infer/predict_rec.py --image_dir="./doc/imgs_words/ch/word_4.jpg" --rec_model_dir="./inference/rec/"
|
||||||
```
|
```
|
||||||
|
|
||||||
![](imgs_words/word_4.jpg)
|
![](imgs_words/ch/word_4.jpg)
|
||||||
|
|
||||||
执行命令后,上面图像的预测结果(识别的文本和得分)会打印到屏幕上,示例如下:
|
执行命令后,上面图像的预测结果(识别的文本和得分)会打印到屏幕上,示例如下:
|
||||||
|
|
||||||
Predicts of ./doc/imgs_words/word_4.jpg:['实力活力', 0.89552695]
|
Predicts of ./doc/imgs_words/ch/word_4.jpg:['实力活力', 0.89552695]
|
||||||
|
|
||||||
|
|
||||||
### 2.基于CTC损失的识别模型推理
|
### 2.基于CTC损失的识别模型推理
|
||||||
|
|
|
@ -156,7 +156,7 @@ python3 tools/infer_rec.py -c configs/rec/rec_chinese_lite_train.yml -o Global.c
|
||||||
得到输入图像的预测结果:
|
得到输入图像的预测结果:
|
||||||
|
|
||||||
```
|
```
|
||||||
infer_img: infer_img/en/word_1.png
|
infer_img: doc/imgs_words/en/word_1.png
|
||||||
index: [19 24 18 23 29]
|
index: [19 24 18 23 29]
|
||||||
word : joint
|
word : joint
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue