DetectBox

Function

It is a struct used to define the obtained inference results.

Structure Definition

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

Parameter Description

Parameter

Input/Output

Description

prob

Output

Confidence of a class.

classID

Output

ID of a class.

x

Output

Horizontal coordinate of an object.

y

Output

Vertical coordinate of an object.

width

Output

Width of the object, which is calculated from the horizontal coordinate x.

height

Output

Height of the object, which is calculated from the vertical coordinate y.

className

Output

Class name.

maskPtr

Output

Mask used for instance segmentation.