下载
中文
注册

DetectBox

功能

定义获取推理结果使用的结构体。

结构定义

struct DetectBox {
    float prob;
    int classID;
    float x;
    float y;
    float width;
    float height;
    std::string className;
    void *maskPtr;
};

参数说明

参数名

说明

prob

类别的置信度。

classID

类别的编号。

x

目标的横坐标。

y

目标的纵坐标。

width

目标的宽度,从横坐标x处开始计算。

height

目标的高度,从纵坐标y处开始计算。

className

类别名。

maskPtr

实例分割需要使用的掩码。