表示分类网络返回的结果的结构体。
声明
typedef struct
{
int width;
int height;
std::vector< Score > scores;
int type;
const char * lookup(int index);
} vitis::ai::ClassificationResult;
| 成员 | 描述 |
|---|---|
| width | 输入图像的宽度。 |
| height | 输入图像的高度。 |
| scores |
第一个 k 中对象宽度置信度的矢量;k 默认值为 5,可通过模型配置文件来修改。 |
| type |
Classification
标签类型。 |
| lookup | 索引对应的分类。 |