Skip to content

Commit ba5a1b7

Browse files
committed
Update by comments
1 parent 8d1adce commit ba5a1b7

File tree

6 files changed

+58
-26
lines changed

6 files changed

+58
-26
lines changed

docs/api_docs/cpp/vision_results_cn.md

+26-8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[English](./vision_results_en.md) | 简体中文
2+
13
# 视觉模型预测结果说明
24

35
## ClassifyResult 图像分类结果
@@ -6,7 +8,9 @@ ClassifyResult代码定义在`fastdeploy/vision/common/result.h`中,用于表
68

79
### C++ 定义
810

9-
`fastdeploy::vision::ClassifyResult`
11+
```c++
12+
fastdeploy::vision::ClassifyResult
13+
```
1014

1115
```c++
1216
struct ClassifyResult {
@@ -28,7 +32,9 @@ SegmentationResult代码定义在`fastdeploy/vision/common/result.h`中,用于
2832
2933
### C++ 定义
3034
31-
`fastdeploy::vision::SegmentationResult`
35+
```c++
36+
fastdeploy::vision::SegmentationResult
37+
```
3238

3339
```c++
3440
struct SegmentationResult {
@@ -102,7 +108,9 @@ FaceAlignmentResult 代码定义在`fastdeploy/vision/common/result.h`中,用
102108
103109
### C++ 定义
104110
105-
`fastdeploy::vision::FaceAlignmentResult`
111+
```c++
112+
fastdeploy::vision::FaceAlignmentResult
113+
```
106114

107115
```c++
108116
struct FaceAlignmentResult {
@@ -122,7 +130,9 @@ KeyPointDetectionResult 代码定义在`fastdeploy/vision/common/result.h`中,
122130
123131
### C++ 定义
124132
125-
`fastdeploy::vision::KeyPointDetectionResult`
133+
```c++
134+
fastdeploy::vision::KeyPointDetectionResult
135+
```
126136

127137
```c++
128138
struct KeyPointDetectionResult {
@@ -152,7 +162,9 @@ struct KeyPointDetectionResult {
152162
FaceRecognitionResult 代码定义在`fastdeploy/vision/common/result.h`中,用于表明人脸识别模型对图像特征的embedding。
153163
### C++ 定义
154164
155-
`fastdeploy::vision::FaceRecognitionResult`
165+
```c++
166+
fastdeploy::vision::FaceRecognitionResult
167+
```
156168

157169
```c++
158170
struct FaceRecognitionResult {
@@ -174,7 +186,9 @@ MattingResult 代码定义在`fastdeploy/vision/common/result.h`中,用于表
174186
175187
### C++ 定义
176188
177-
`fastdeploy::vision::MattingResult`
189+
```c++
190+
fastdeploy::vision::MattingResult
191+
```
178192

179193
```c++
180194
struct MattingResult {
@@ -232,7 +246,9 @@ FaceDetectionResult 代码定义在`fastdeploy/vision/common/result.h`中,用
232246
233247
### C++ 定义
234248
235-
`fastdeploy::vision::FaceDetectionResult`
249+
```c++
250+
fastdeploy::vision::FaceDetectionResult
251+
```
236252

237253
```c++
238254
struct FaceDetectionResult {
@@ -258,7 +274,9 @@ HeadPoseResult 代码定义在`fastdeploy/vision/common/result.h`中,用于表
258274
259275
### C++ 定义
260276
261-
`fastdeploy::vision::HeadPoseResult`
277+
```c++
278+
fastdeploy::vision::HeadPoseResult
279+
```
262280

263281
```c++
264282
struct HeadPoseResult {

docs/api_docs/cpp/vision_results_en.md

+26-12
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
# Description of Vision Results
1+
English | [简体中文](./vision_results_cn.md)
22

3-
本文档的中文版本参考[视觉模型预测结果说明](./vision_results_cn.md)
3+
# Description of Vision Results
44

55
## Image Classification Result
66

77
The ClassifyResult code is defined in `fastdeploy/vision/common/result.h`, and is used to indicate the classification result and confidence level of the image.
88

99
### C++ Definition
1010

11-
`fastdeploy::vision::ClassifyResult`
11+
```c++
12+
fastdeploy::vision::ClassifyResult
13+
```
1214

1315
```c++
1416
struct ClassifyResult {
@@ -31,7 +33,9 @@ The SegmentationResult code is defined in `fastdeploy/vision/common/result.h`, i
3133
3234
### C++ Definition
3335
34-
``fastdeploy::vision::SegmentationResult``
36+
```c++
37+
fastdeploy::vision::SegmentationResult
38+
```
3539

3640
```c++
3741
struct SegmentationResult {
@@ -104,7 +108,9 @@ The FaceDetectionResult code is defined in `fastdeploy/vision/common/result.h`,
104108
105109
### C++ Definition
106110
107-
``fastdeploy::vision::FaceDetectionResult``
111+
```c++
112+
fastdeploy::vision::FaceDetectionResult
113+
```
108114

109115
```c++
110116
struct FaceDetectionResult {
@@ -131,7 +137,9 @@ The KeyPointDetectionResult code is defined in `fastdeploy/vision/common/result.
131137
132138
### C++ Definition
133139
134-
``fastdeploy::vision::KeyPointDetectionResult``
140+
```c++
141+
fastdeploy::vision::KeyPointDetectionResult
142+
```
135143

136144
```c++
137145
struct KeyPointDetectionResult {
@@ -161,7 +169,9 @@ struct KeyPointDetectionResult {
161169
The FaceRecognitionResult code is defined in `fastdeploy/vision/common/result.h`, and is used to indicate the image features embedding in the face recognition model.
162170
### C++ Definition
163171
164-
`fastdeploy::vision::FaceRecognitionResult`
172+
```c++
173+
fastdeploy::vision::FaceRecognitionResult
174+
```
165175

166176
```c++
167177
struct FaceRecognitionResult {
@@ -180,8 +190,9 @@ struct FaceRecognitionResult {
180190
The MattingResult code is defined in `fastdeploy/vision/common/result.h`, and is used to indicate the predicted value of alpha transparency predicted and the predicted foreground, etc.
181191
182192
### C++ Definition
183-
184-
``fastdeploy::vision::MattingResult`''
193+
```c++
194+
fastdeploy::vision::MattingResult
195+
```
185196

186197
```c++
187198
struct MattingResult {
@@ -239,8 +250,9 @@ struct OCRResult {
239250
The FaceAlignmentResult code is defined in `fastdeploy/vision/common/result.h`, and is used to indicate face landmarks.
240251
241252
### C++ Definition
242-
243-
`fastdeploy::vision::FaceAlignmentResult`
253+
```c++
254+
fastdeploy::vision::FaceAlignmentResult
255+
```
244256

245257
```c++
246258
struct FaceAlignmentResult {
@@ -261,7 +273,9 @@ The HeadPoseResult code is defined in `fastdeploy/vision/common/result.h`, and i
261273
262274
### C++ Definition
263275
264-
``fastdeploy::vision::HeadPoseResult`''
276+
```c++
277+
fastdeploy::vision::HeadPoseResult
278+
```
265279

266280
```c++
267281
struct HeadPoseResult {

docs/cn/build_and_install/huawei_ascend.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ python setup.py bdist_wheel
126126
## 五.昇腾部署时开启FlyCV
127127
[FlyCV](https://github.com/PaddlePaddle/FlyCV) 是一款高性能计算机图像处理库, 针对ARM架构做了很多优化, 相比其他图像处理库性能更为出色.
128128
FastDeploy现在已经集成FlyCV, 用户可以在支持的硬件平台上使用FlyCV, 实现模型端到端推理性能的加速.
129-
模型端到端推理中, 预处理和后处理阶段为CPU计算, 当用户使用ARM CPU + 昇腾的硬件平台时, 我们推荐用户使用FlyCV, 可以实现端到端的推理性能加速, 详见[FLyCV使用文档](../faq/boost_cv_by_flycv.md).
129+
模型端到端推理中, 预处理和后处理阶段为CPU计算, 当用户使用ARM CPU + 昇腾的硬件平台时, 我们推荐用户使用FlyCV, 可以实现端到端的推理性能加速, 详见[FlyCV使用文档](../faq/boost_cv_by_flycv.md).
130130

131131

132132
## 六.昇腾部署Demo参考

docs/cn/faq/vision_result_related_problems.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## 将视觉模型预测结果转换为numpy格式
55

66
这里以[SegmentationResult](./segmentation_result_CN.md)为例,展示如何抽取SegmentationResult中的label_map或者score_map来转为numpy格式,同时也可以利用已有数据new SegmentationResult结构体
7-
```
7+
``` python
88
import fastdeploy as fd
99
import cv2
1010
import numpy as np

examples/vision/segmentation/paddleseg/android/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
English | [简体中文](README_CN.md)
2-
# PaddleSeg Android Demo for Target Detection
2+
# PaddleSeg Android Demo for Image Segmentation
33

44
For real-time portrait segmentation on Android, this demo has good ease of use and openness. You can run your own training model in the demo.
55

@@ -10,7 +10,7 @@ For real-time portrait segmentation on Android, this demo has good ease of use a
1010

1111
## Deployment Steps
1212

13-
1. Target detection PaddleSeg Demo is located in `fastdeploy/examples/vision/segmentation/paddleseg/android` directory.
13+
1. Image Segmentation PaddleSeg Demo is located in `fastdeploy/examples/vision/segmentation/paddleseg/android` directory.
1414
2. Please use Android Studio to open paddleseg/android project.
1515
3. Connect your phone to your computer, turn on USB debugging and file transfer mode, and connect your own mobile device on Android Studio (your phone needs to be enabled to allow software installation from USB).
1616

examples/vision/segmentation/paddleseg/android/README_CN.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[English](README.md) | 简体中文
2-
# 目标检测 PaddleSeg Android Demo 使用文档
2+
# 图像分割 PaddleSeg Android Demo 使用文档
33

44
在 Android 上实现实时的人像分割功能,此 Demo 有很好的的易用性和开放性,如在 Demo 中跑自己训练好的模型等。
55

@@ -10,7 +10,7 @@
1010

1111
## 部署步骤
1212

13-
1. 目标检测 PaddleSeg Demo 位于 `path/to/paddleseg/android` 目录
13+
1. 图像分割 PaddleSeg Demo 位于 `path/to/paddleseg/android` 目录
1414
2. 用 Android Studio 打开 paddleseg/android 工程
1515
3. 手机连接电脑,打开 USB 调试和文件传输模式,并在 Android Studio 上连接自己的手机设备(手机需要开启允许从 USB 安装软件权限)
1616

0 commit comments

Comments
 (0)