VisionDataFormat图像数据格式排布枚举类型
基本数据枚举类型
表1 数据格式枚举类型
| 数据类型 | 说明 |
|---|---|
| base.undefined | 未定义类型。 |
| base.int8 | int8类型。 |
| base.uint8 | uint8类型。 |
| base.int16 | int16类型。 |
| base.uint16 | uint16类型。 |
| base.int32 | int32类型。 |
| base.uint32 | uint32类型。 |
| base.int64 | int64类型。 |
| base.uint64 | uint64类型。 |
| base.float16 | float16类型。 |
| base.float32 | float32类型。 |
| base.double | double类型。 |
| base.bool | bool类型。 |
父主题: 通用枚举类型/数据类
ModelLoadType模型加载方式枚举类型
表1 模型加载方式
| 参数名 | 说明 |
|---|---|
| base.load_model_from_file | 从文件加载离线模型数据,由系统内部管理内存。 |
| base.load_model_from_mem | 从内存加载离线模型数据,由系统内部管理内存。 |
| base.load_model_from_file_with_mem | 从文件加载离线模型数据,由用户自行管理模型运行的内存。 |
| base.load_model_from_mem_with_mem | 从内存加载离线模型数据,由用户自行管理模型运行的内存。 |
父主题: 通用枚举类型/数据类
ModelType模型枚举类型
表1 模型类型
| 参数名 | 说明 |
|---|---|
| base.model_type_om | OM模型。 |
| base.model_type_mindir | MindIR模型(对于MindIR模型,仅支持静态Shape和动态Batch。)。 |
父主题: 通用枚举类型/数据类
VisionDataFormat图像数据格式排布枚举类型
表1 图像数据格式排布形式
| 排布形式 | 说明 |
|---|---|
| NCHW | 图像数据按NCHW格式排布。 |
| NHWC | 图像数据按NHWC格式排布。 |
父主题: 通用枚举类型/数据类
image_format图片格式枚举类型
表1 图像格式类型
| 内存类型 | 说明 |
|---|---|
| base.yuv_400 | YUV_400 的图像格式。 |
| base.nv12 | YUV_SP_420 的图像格式。 |
| base.nv21 | YVU_SP_420 的图像格式。 |
| base.yuv_sp_422 | YUV_SP_422 的图像格式。 |
| base.yvu_sp_422 | YVU_SP_422 的图像格式。 |
| base.yuv_sp_444 | YUV_SP_444 的图像格式。 |
| base.yvu_sp_444 | YVU_SP_444 的图像格式。 |
| base.yuyv_packed_422 | YUYV_PACKED_422 的图像格式。 |
| base.uyvy_packed_422 | UYVY_PACKED_422 的图像格式。 |
| base.yvyu_packed_422 | YVYU_PACKED_422 的图像格式。 |
| base.vyuy_packed_422 | VYUY_PACKED_422 的图像格式。 |
| base.yuv_packed_444 | YUV_PACKED_444 的图像格式。 |
| base.bgr | BGR_888的图像格式。 |
| base.rgb | RGB_888的图像格式。 |
| base.argb | ARGB_8888 的图像格式。 |
| base.abgr | ABGR_8888 的图像格式。 |
| base.rgba | RGBA_8888 的图像格式。 |
| base.bgra | BGRA_8888 的图像格式。 |
父主题: 通用枚举类型/数据类
Resize缩放枚举类型
表1 Resize参数类型说明
| 参数类型 | 说明 |
|---|---|
| base.resize_ms_keep_ratio | ResizeType.RESIZER_MS_KEEP_ASPECT_RATIO。 |
| base.resize_stretching | ResizeType.RESIZER_STRETCHING。 |
| base.resize_tf_keep_ratio | ResizeType.RESIZER_TF_KEEP_ASPECT_RATIO。 |
父主题: 通用枚举类型/数据类
Interpolation缩放方式格式枚举类型
表1 缩放方式格式类型
| 参数名 | 说明 |
|---|---|
| base.huaweiu_high_order_filter | 华为自研的高阶滤波算法。 |
| base.bilinear_similar_opencv | 业界通用的 Bilinear 算法(与 OpenCV 算法的计算过程类似)。 |
| base.nearest_neighbor_opencv | 业界通用的 Nearest neighbor 算法(与 OpenCV 算法的计算过程类似)。 |
| base.bilinear_similar_tensorflow | 业界通用的 Bilinear 算法(与 TensorFlow 算法的计算过程类似)。 |
| base.nearestneighbor_tensorflow | 业界通用的 Nearest neighbor 算法(与 TensorFlow 算法的计算过程类似)。 |
父主题: 通用枚举类型/数据类
在线提单