DetectBox

Description

Defines the structure for obtaining inference results.

Structure Definition

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
struct DetectBox {
    float prob;
    int classID;
    float x;
    float y;
    float width;
    float height;
    std::string className;
    void *maskPtr;
};

Parameters

Parameter

Description

prob

Confidence of a class.

classID

ID of a class.

x

Horizontal coordinate of an object.

y

Vertical coordinate of an object.

width

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

height

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

className

Class name.

maskPtr

Mask used for instance segmentation.