type类
dtype类
| 属性名 | 对应类型 |
|---|---|
| dtype.int8 | int8类型。 |
| dtype.uint8 | uint8类型。 |
| dtype.int16 | int16类型。 |
| dtype.uint16 | uint16类型。 |
| dtype.int32 | int32类型。 |
| dtype.uint32 | uint32类型。 |
| dtype.int64 | int64类型。 |
| dtype.uint64 | uint64类型。 |
| dtype.float16 | float16类型。 |
| dtype.float32 | float32类型。 |
| dtype.double | double类型。 |
| dtype.bool | bool类型。 |
| dtype.undefined | 未定义类型。 |
父主题: 通用枚举类型/数据类
image.format类
表1 image.format类属性说明
| 属性名 | 类型 |
|---|---|
| image.format.nv12 | NV12格式类型。 |
| image.format.nv21 | NV12格式类型。 |
| image.format.bgr | BGR888格式类型。 |
| image.format.rgb | RGB888格式类型。 |
父主题: 通用枚举类型/数据类
type类
表1 type类属性说明
| 属性名 | 类型 |
|---|---|
| type.memory_host | Host侧内存类型。 |
| type.memory_device | Device侧内存类型。 |
| type.memory_dvpp | DVPP内存类型。 |
父主题: 通用枚举类型/数据类
BufferInput类
表1 BufferInput类属性说明
| 属性名 | 类型 | 说明 |
|---|---|---|
| data | str | 图片数据。 |
| frame_info | str | 帧信息。 |
| vision_info | str | 图片信息。 |
父主题: 通用枚举类型/数据类
MetadataInput类
| 属性名 | 类型 | 说明 |
|---|---|---|
| data_source | str | 源字段。 |
| data_type | str | protobuf数据类型。 |
| serialized_metadata | str | protobuf数据的序列化表示。 |
父主题: 通用枚举类型/数据类
DataOutput类
| 属性名 | 类型 | 说明 |
|---|---|---|
| error_code | int | 错误码。 |
| error_msg | str | 错误信息。 |
| buffer_output | BufferOutput | 一般类型的输出结果。 |
| metadata_list | List[MetadataOutput] | protobuf类型的输出结果。 |
| set_error_info(int, str) | 函数,无返回值 | 设置错误信息。 |
父主题: 通用枚举类型/数据类
在线提单