fix cpp infer doc for cls

This commit is contained in:
littletomatodonkey 2020-09-19 13:59:16 +00:00
parent 24dfd8b2b2
commit 2ee7dcb53a
3 changed files with 7 additions and 2 deletions

View File

@ -193,6 +193,9 @@ make -j
sh tools/run.sh
```
* 若需要使用方向分类器,则需要将`tools/config.txt`中的`use_angle_cls`参数修改为1表示开启方向分类器的预测。
最终屏幕上会输出检测结果如下。
<div align="center">

View File

@ -162,7 +162,7 @@ inference/
sh tools/build.sh
```
具体地,`tools/build.sh`中内容如下。
Specifically, the content in `tools/build.sh` is as follows.
```shell
OPENCV_DIR=your_opencv_dir
@ -201,6 +201,8 @@ make -j
sh tools/run.sh
```
* If you want to orientation classifier to correct the detected boxes, you can set `use_angle_cls` in the file `tools/config.txt` as 1 to enable the function.
The detection results will be shown on the screen, which is as follows.
<div align="center">

View File

@ -15,7 +15,7 @@ det_model_dir ./inference/det_db
# cls config
use_angle_cls 0
cls_model_dir ../inference/cls
cls_model_dir ./inference/cls
cls_thresh 0.9
# rec config