ObjectInfo

Function

Defines object bounding box information of an object detection task.

Structure Definition

class ObjectInfo {
public:
    float x0 = 0;
    float y0 = 0;
    float x1 = 0;
    float y1 = 0;
    float confidence = 0;
    float classId = 0;
    std::string className;
    std::vector<std::vector<uint8_t>> mask;
};

Parameter Description

Parameter

Description

x0

Horizontal coordinate of the upper left corner of the object

y0

Vertical coordinate of the upper left corner of the object

x1

Horizontal coordinate of the lower right corner of the object

y1

Vertical coordinate of the lower right corner of the object

confidence

Confidence of a class

classId

Class ID

className

Class name

mask

Pixel map in the object bounding box, which is used by the instance segmentation task