Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
71388f67
P
Paddle-Lite
项目概览
PaddlePaddle
/
Paddle-Lite
通知
338
Star
4
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
271
列表
看板
标记
里程碑
合并请求
78
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle-Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
271
Issue
271
列表
看板
标记
里程碑
合并请求
78
合并请求
78
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
71388f67
编写于
12月 02, 2019
作者:
H
HappyAngel
提交者:
yiicy
12月 02, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix code-style in cv.md, test=develop (#2544)
fix code-style in cv.md
上级
2e2fa64e
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
23 addition
and
23 deletion
+23
-23
_all_pages/develop/cv.md
_all_pages/develop/cv.md
+11
-11
_all_pages/v2.1.0/cv.md
_all_pages/v2.1.0/cv.md
+11
-11
_all_pages/v2.1.0/index.md
_all_pages/v2.1.0/index.md
+1
-1
未找到文件。
_all_pages/develop/cv.md
浏览文件 @
71388f67
...
@@ -49,7 +49,7 @@ typedef struct {
...
@@ -49,7 +49,7 @@ typedef struct {
}
TransParam
;
}
TransParam
;
```
```
###
`ImagePreprocess`
类的成员变量
###
ImagePreprocess
类的成员变量
`ImagePreprocess`
类含有以下三个私有成员变量,通过构造函数进行初始化。
`ImagePreprocess`
类含有以下三个私有成员变量,通过构造函数进行初始化。
```
cpp
```
cpp
...
@@ -66,7 +66,7 @@ ImagePreprocess::ImagePreprocess(ImageFormat srcFormat, ImageFormat dstFormat, T
...
@@ -66,7 +66,7 @@ ImagePreprocess::ImagePreprocess(ImageFormat srcFormat, ImageFormat dstFormat, T
}
}
```
```
### 颜色空间转换
`Convert`
### 颜色空间转换
Convert
`Convert`
函数支持颜色空间:GRAY、NV12(NV21)、RGB(BGR)和RGBA(BGRA)
`Convert`
函数支持颜色空间:GRAY、NV12(NV21)、RGB(BGR)和RGBA(BGRA)
...
@@ -105,7 +105,7 @@ ImagePreprocess::ImagePreprocess(ImageFormat srcFormat, ImageFormat dstFormat, T
...
@@ -105,7 +105,7 @@ ImagePreprocess::ImagePreprocess(ImageFormat srcFormat, ImageFormat dstFormat, T
- 第二个`imageCovert` 接口,可以直接使用
- 第二个`imageCovert` 接口,可以直接使用
### 缩放
`Resize`
### 缩放
Resize
`Resize`
功能支持颜色空间:GRAY、NV12(NV21)、RGB(BGR)和RGBA(BGRA)
`Resize`
功能支持颜色空间:GRAY、NV12(NV21)、RGB(BGR)和RGBA(BGRA)
`Resize`
功能目前支持的方法:
`bilinear`
`Resize`
功能目前支持的方法:
`bilinear`
...
@@ -127,7 +127,7 @@ ImagePreprocess::ImagePreprocess(ImageFormat srcFormat, ImageFormat dstFormat, T
...
@@ -127,7 +127,7 @@ ImagePreprocess::ImagePreprocess(ImageFormat srcFormat, ImageFormat dstFormat, T
- 第二个`imageResize` 接口,可以直接使用
- 第二个`imageResize` 接口,可以直接使用
### 旋转
`Rotate`
### 旋转
Rotate
`Rotate`
功能支持颜色空间:GRAY、RGB(BGR)和RGBA(BGRA)
`Rotate`
功能支持颜色空间:GRAY、RGB(BGR)和RGBA(BGRA)
`Rotate`
功能目前支持的角度:90、180 和 270
`Rotate`
功能目前支持的角度:90、180 和 270
...
@@ -148,7 +148,7 @@ ImagePreprocess::ImagePreprocess(ImageFormat srcFormat, ImageFormat dstFormat, T
...
@@ -148,7 +148,7 @@ ImagePreprocess::ImagePreprocess(ImageFormat srcFormat, ImageFormat dstFormat, T
- 第二个`imageRotate` 接口,可以直接使用
- 第二个`imageRotate` 接口,可以直接使用
### 翻转
`Flip`
### 翻转
Flip
`Flip`
功能支持颜色空间:GRAY、RGB(BGR)和RGBA(BGRA)
`Flip`
功能支持颜色空间:GRAY、RGB(BGR)和RGBA(BGRA)
`Flip`
功能目前支持的功能:沿X轴翻转、沿Y轴翻转和沿XY轴翻转
`Flip`
功能目前支持的功能:沿X轴翻转、沿Y轴翻转和沿XY轴翻转
...
@@ -169,7 +169,7 @@ ImagePreprocess::ImagePreprocess(ImageFormat srcFormat, ImageFormat dstFormat, T
...
@@ -169,7 +169,7 @@ ImagePreprocess::ImagePreprocess(ImageFormat srcFormat, ImageFormat dstFormat, T
- 第二个`imageFlip` 接口,可以直接使用
- 第二个`imageFlip` 接口,可以直接使用
###
`Image2Tensor`
###
Image2Tensor
`Image2Tensor`
功能支持颜色空间:RGB(BGR)和RGBA(BGRA)
`Image2Tensor`
功能支持颜色空间:RGB(BGR)和RGBA(BGRA)
`Image2Tensor`
功能目前支持的Layout:
`NCHW`
和
`NHWC`
`Image2Tensor`
功能目前支持的Layout:
`NCHW`
和
`NHWC`
...
@@ -222,7 +222,7 @@ ImagePreprocess image_preprocess(srcFormat, dstFormat, tparam);
...
@@ -222,7 +222,7 @@ ImagePreprocess image_preprocess(srcFormat, dstFormat, tparam);
ImagePreprocess
image_preprocess
();
ImagePreprocess
image_preprocess
();
```
```
###
`imageConvert`
Demo
###
imageConvert
Demo
```
cpp
```
cpp
// 方法一:
// 方法一:
...
@@ -231,7 +231,7 @@ image_preprocess.imageCovert(src, lite_dst);
...
@@ -231,7 +231,7 @@ image_preprocess.imageCovert(src, lite_dst);
image_preprocess
.
imageCovert
(
src
,
lite_dst
,
(
ImageFormat
)
srcFormat
,
(
ImageFormat
)
dstFormat
);
image_preprocess
.
imageCovert
(
src
,
lite_dst
,
(
ImageFormat
)
srcFormat
,
(
ImageFormat
)
dstFormat
);
```
```
###
`imageResize`
Demo
###
imageResize
Demo
```
cpp
```
cpp
// 方法一:
// 方法一:
...
@@ -241,7 +241,7 @@ image_preprocess.imageResize(lite_dst,resize_tmp, (ImageFormat)dstFormat, srcw,
...
@@ -241,7 +241,7 @@ image_preprocess.imageResize(lite_dst,resize_tmp, (ImageFormat)dstFormat, srcw,
srch
,
dstw
,
dsth
);
srch
,
dstw
,
dsth
);
```
```
###
`imageRotate`
Demo
###
imageRotate
Demo
```
cpp
```
cpp
// 方法一:
// 方法一:
...
@@ -250,7 +250,7 @@ image_preprocess.imageRotate(resize_tmp, tv_out_ratote);
...
@@ -250,7 +250,7 @@ image_preprocess.imageRotate(resize_tmp, tv_out_ratote);
image_preprocess
.
imageRotate
(
resize_tmp
,
tv_out_ratote
,
(
ImageFormat
)
dstFormat
,
dstw
,
dsth
,
degree
);
image_preprocess
.
imageRotate
(
resize_tmp
,
tv_out_ratote
,
(
ImageFormat
)
dstFormat
,
dstw
,
dsth
,
degree
);
```
```
###
`imageFlip`
Demo
###
imageFlip
Demo
```
cpp
```
cpp
// 方法一:
// 方法一:
...
@@ -259,7 +259,7 @@ image_preprocess.imageFlip(tv_out_ratote, tv_out_flip);
...
@@ -259,7 +259,7 @@ image_preprocess.imageFlip(tv_out_ratote, tv_out_flip);
image_preprocess
.
imageFlip
(
tv_out_ratote
,
tv_out_flip
,
(
ImageFormat
)
dstFormat
,
dstw
,
dsth
,
flip_param
);
image_preprocess
.
imageFlip
(
tv_out_ratote
,
tv_out_flip
,
(
ImageFormat
)
dstFormat
,
dstw
,
dsth
,
flip_param
);
```
```
###
`image2Tensor`
Demo
###
image2Tensor
Demo
```
cpp
```
cpp
// 方法一:
// 方法一:
...
...
_all_pages/v2.1.0/cv.md
浏览文件 @
71388f67
...
@@ -49,7 +49,7 @@ typedef struct {
...
@@ -49,7 +49,7 @@ typedef struct {
}
TransParam
;
}
TransParam
;
```
```
###
`ImagePreprocess`
类的成员变量
###
ImagePreprocess
类的成员变量
`ImagePreprocess`
类含有以下三个私有成员变量,通过构造函数进行初始化。
`ImagePreprocess`
类含有以下三个私有成员变量,通过构造函数进行初始化。
```
cpp
```
cpp
...
@@ -66,7 +66,7 @@ ImagePreprocess::ImagePreprocess(ImageFormat srcFormat, ImageFormat dstFormat, T
...
@@ -66,7 +66,7 @@ ImagePreprocess::ImagePreprocess(ImageFormat srcFormat, ImageFormat dstFormat, T
}
}
```
```
### 颜色空间转换
`Convert`
### 颜色空间转换
Convert
`Convert`
函数支持颜色空间:GRAY、NV12(NV21)、RGB(BGR)和RGBA(BGRA)
`Convert`
函数支持颜色空间:GRAY、NV12(NV21)、RGB(BGR)和RGBA(BGRA)
...
@@ -105,7 +105,7 @@ ImagePreprocess::ImagePreprocess(ImageFormat srcFormat, ImageFormat dstFormat, T
...
@@ -105,7 +105,7 @@ ImagePreprocess::ImagePreprocess(ImageFormat srcFormat, ImageFormat dstFormat, T
- 第二个`imageCovert` 接口,可以直接使用
- 第二个`imageCovert` 接口,可以直接使用
### 缩放
`Resize`
### 缩放
Resize
`Resize`
功能支持颜色空间:GRAY、NV12(NV21)、RGB(BGR)和RGBA(BGRA)
`Resize`
功能支持颜色空间:GRAY、NV12(NV21)、RGB(BGR)和RGBA(BGRA)
`Resize`
功能目前支持的方法:
`bilinear`
`Resize`
功能目前支持的方法:
`bilinear`
...
@@ -127,7 +127,7 @@ ImagePreprocess::ImagePreprocess(ImageFormat srcFormat, ImageFormat dstFormat, T
...
@@ -127,7 +127,7 @@ ImagePreprocess::ImagePreprocess(ImageFormat srcFormat, ImageFormat dstFormat, T
- 第二个`imageResize` 接口,可以直接使用
- 第二个`imageResize` 接口,可以直接使用
### 旋转
`Rotate`
### 旋转
Rotate
`Rotate`
功能支持颜色空间:GRAY、RGB(BGR)和RGBA(BGRA)
`Rotate`
功能支持颜色空间:GRAY、RGB(BGR)和RGBA(BGRA)
`Rotate`
功能目前支持的角度:90、180 和 270
`Rotate`
功能目前支持的角度:90、180 和 270
...
@@ -148,7 +148,7 @@ ImagePreprocess::ImagePreprocess(ImageFormat srcFormat, ImageFormat dstFormat, T
...
@@ -148,7 +148,7 @@ ImagePreprocess::ImagePreprocess(ImageFormat srcFormat, ImageFormat dstFormat, T
- 第二个`imageRotate` 接口,可以直接使用
- 第二个`imageRotate` 接口,可以直接使用
### 翻转
`Flip`
### 翻转
Flip
`Flip`
功能支持颜色空间:GRAY、RGB(BGR)和RGBA(BGRA)
`Flip`
功能支持颜色空间:GRAY、RGB(BGR)和RGBA(BGRA)
`Flip`
功能目前支持的功能:沿X轴翻转、沿Y轴翻转和沿XY轴翻转
`Flip`
功能目前支持的功能:沿X轴翻转、沿Y轴翻转和沿XY轴翻转
...
@@ -169,7 +169,7 @@ ImagePreprocess::ImagePreprocess(ImageFormat srcFormat, ImageFormat dstFormat, T
...
@@ -169,7 +169,7 @@ ImagePreprocess::ImagePreprocess(ImageFormat srcFormat, ImageFormat dstFormat, T
- 第二个`imageFlip` 接口,可以直接使用
- 第二个`imageFlip` 接口,可以直接使用
###
`Image2Tensor`
###
Image2Tensor
`Image2Tensor`
功能支持颜色空间:RGB(BGR)和RGBA(BGRA)
`Image2Tensor`
功能支持颜色空间:RGB(BGR)和RGBA(BGRA)
`Image2Tensor`
功能目前支持的Layout:
`NCHW`
和
`NHWC`
`Image2Tensor`
功能目前支持的Layout:
`NCHW`
和
`NHWC`
...
@@ -222,7 +222,7 @@ ImagePreprocess image_preprocess(srcFormat, dstFormat, tparam);
...
@@ -222,7 +222,7 @@ ImagePreprocess image_preprocess(srcFormat, dstFormat, tparam);
ImagePreprocess
image_preprocess
();
ImagePreprocess
image_preprocess
();
```
```
###
`imageConvert`
Demo
###
imageConvert
Demo
```
cpp
```
cpp
// 方法一:
// 方法一:
...
@@ -231,7 +231,7 @@ image_preprocess.imageCovert(src, lite_dst);
...
@@ -231,7 +231,7 @@ image_preprocess.imageCovert(src, lite_dst);
image_preprocess
.
imageCovert
(
src
,
lite_dst
,
(
ImageFormat
)
srcFormat
,
(
ImageFormat
)
dstFormat
);
image_preprocess
.
imageCovert
(
src
,
lite_dst
,
(
ImageFormat
)
srcFormat
,
(
ImageFormat
)
dstFormat
);
```
```
###
`imageResize`
Demo
###
imageResize
Demo
```
cpp
```
cpp
// 方法一:
// 方法一:
...
@@ -241,7 +241,7 @@ image_preprocess.imageResize(lite_dst,resize_tmp, (ImageFormat)dstFormat, srcw,
...
@@ -241,7 +241,7 @@ image_preprocess.imageResize(lite_dst,resize_tmp, (ImageFormat)dstFormat, srcw,
srch
,
dstw
,
dsth
);
srch
,
dstw
,
dsth
);
```
```
###
`imageRotate`
Demo
###
imageRotate
Demo
```
cpp
```
cpp
// 方法一:
// 方法一:
...
@@ -250,7 +250,7 @@ image_preprocess.imageRotate(resize_tmp, tv_out_ratote);
...
@@ -250,7 +250,7 @@ image_preprocess.imageRotate(resize_tmp, tv_out_ratote);
image_preprocess
.
imageRotate
(
resize_tmp
,
tv_out_ratote
,
(
ImageFormat
)
dstFormat
,
dstw
,
dsth
,
degree
);
image_preprocess
.
imageRotate
(
resize_tmp
,
tv_out_ratote
,
(
ImageFormat
)
dstFormat
,
dstw
,
dsth
,
degree
);
```
```
###
`imageFlip`
Demo
###
imageFlip
Demo
```
cpp
```
cpp
// 方法一:
// 方法一:
...
@@ -259,7 +259,7 @@ image_preprocess.imageFlip(tv_out_ratote, tv_out_flip);
...
@@ -259,7 +259,7 @@ image_preprocess.imageFlip(tv_out_ratote, tv_out_flip);
image_preprocess
.
imageFlip
(
tv_out_ratote
,
tv_out_flip
,
(
ImageFormat
)
dstFormat
,
dstw
,
dsth
,
flip_param
);
image_preprocess
.
imageFlip
(
tv_out_ratote
,
tv_out_flip
,
(
ImageFormat
)
dstFormat
,
dstw
,
dsth
,
flip_param
);
```
```
###
`image2Tensor`
Demo
###
image2Tensor
Demo
```
cpp
```
cpp
// 方法一:
// 方法一:
...
...
_all_pages/v2.1.0/index.md
浏览文件 @
71388f67
...
@@ -47,7 +47,7 @@ Paddle-Lite 框架是 PaddleMobile 新一代架构,重点支持移动端推理
...
@@ -47,7 +47,7 @@ Paddle-Lite 框架是 PaddleMobile 新一代架构,重点支持移动端推理
-
[
使用FPGA
](
{{site.baseurl}}/v2.1.0/fpga
)
-
[
使用FPGA
](
{{site.baseurl}}/v2.1.0/fpga
)
-
[
使用CUDA
](
{{site.baseurl}}/v2.1.0/cuda
)
-
[
使用CUDA
](
{{site.baseurl}}/v2.1.0/cuda
)
-
[
使用X86预测库
](
{{site.baseurl}}/v2.1.0/x86
)
-
[
使用X86预测库
](
{{site.baseurl}}/v2.1.0/x86
)
-
[
CV图像预处理库
](
{{site.baseurl}}/
develop
/cv
)
-
[
CV图像预处理库
](
{{site.baseurl}}/
v2.1.0
/cv
)
## 开发者文档
## 开发者文档
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录