[docs][win] add windows c++ sdk demo to examples (#136)

* [docs] format docs with markdown with language tags

* [docs][win] add windows c++ sdk demo

* [docs][win] add windows c++ sdk demo to examples

* [docs][api] update runtime_option docs
This commit is contained in:
DefTruth
2022-08-22 10:53:00 +08:00
committed by GitHub
parent f7e4b8490f
commit beddcba900
54 changed files with 278 additions and 164 deletions

View File

@@ -9,7 +9,7 @@
以Linux上推理为例在本目录执行如下命令即可完成编译测试
```
```bash
以ppyoloe为例进行推理部署
#下载SDK编译模型examples代码SDK中包含了examples代码
@@ -34,12 +34,15 @@ tar xvf ppyoloe_crn_l_300e_coco.tgz
./infer_ppyoloe_demo ./ppyoloe_crn_l_300e_coco 000000014439.jpg 2
```
以上命令只适用于Linux或MacOS, Windows下SDK的使用方式请参考:
- [如何在Windows中使用FastDeploy C++ SDK](../../../../../docs/compile/how_to_use_sdk_on_windows.md)
## PaddleDetection C++接口
### 模型类
PaddleDetection目前支持6种模型系列类名分别为`PPYOLOE`, `PicoDet`, `PaddleYOLOX`, `PPYOLO`, `FasterRCNN`所有类名的构造函数和预测函数在参数上完全一致本文档以PPYOLOE为例讲解API
```
```c++
fastdeploy::vision::detection::PPYOLOE(
const string& model_file,
const string& params_file,
@@ -60,7 +63,7 @@ PaddleDetection PPYOLOE模型加载和初始化其中model_file为导出的ON
#### Predict函数
> ```
> ```c++
> PPYOLOE::Predict(cv::Mat* im, DetectionResult* result)
> ```
>