提交 2ee7dcb5 编写于 作者: littletomatodonkey's avatar littletomatodonkey

fix cpp infer doc for cls

上级 24dfd8b2
...@@ -193,6 +193,9 @@ make -j ...@@ -193,6 +193,9 @@ make -j
sh tools/run.sh sh tools/run.sh
``` ```
* 若需要使用方向分类器,则需要将`tools/config.txt`中的`use_angle_cls`参数修改为1,表示开启方向分类器的预测。
最终屏幕上会输出检测结果如下。 最终屏幕上会输出检测结果如下。
<div align="center"> <div align="center">
......
...@@ -162,7 +162,7 @@ inference/ ...@@ -162,7 +162,7 @@ inference/
sh tools/build.sh sh tools/build.sh
``` ```
具体地,`tools/build.sh`中内容如下。 Specifically, the content in `tools/build.sh` is as follows.
```shell ```shell
OPENCV_DIR=your_opencv_dir OPENCV_DIR=your_opencv_dir
...@@ -201,6 +201,8 @@ make -j ...@@ -201,6 +201,8 @@ make -j
sh tools/run.sh 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. The detection results will be shown on the screen, which is as follows.
<div align="center"> <div align="center">
......
...@@ -15,7 +15,7 @@ det_model_dir ./inference/det_db ...@@ -15,7 +15,7 @@ det_model_dir ./inference/det_db
# cls config # cls config
use_angle_cls 0 use_angle_cls 0
cls_model_dir ../inference/cls cls_model_dir ./inference/cls
cls_thresh 0.9 cls_thresh 0.9
# rec config # rec config
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册