diff --git a/doc/inference.md b/doc/inference.md index d6bebf59507f140e54921a0fd548377b8d2b38fe..c0b5ea2846a4d86d41e14573edf92de5d62de3f8 100644 --- a/doc/inference.md +++ b/doc/inference.md @@ -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损失的识别模型推理 diff --git a/doc/recognition.md b/doc/recognition.md index 196f81baa9298b2e0518bfc7cf0e49c7205d4b96..bd13ddaf0d00bb22af248a86849399d5288511c6 100644 --- a/doc/recognition.md +++ b/doc/recognition.md @@ -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] word : joint ```