ObjectInfo
Description
Defines object bounding box information of an object detection task.
Structure Definition
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | class SDK_AVAILABLE_FOR_OUT ObjectInfo { public: ObjectInfo() = default; ObjectInfo(float x0_, float y0_, float x1_, float y1_, float confidence_, float classId_, std::string className_, std::vector<std::vector<uint8_t>> mask_) { x0 = x0_; y0 = y0_; x1 = x1_; y1 = y1_; confidence = confidence_; classId = classId_; className = className_; mask = mask_; } 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; }; |
Parameters
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 |
Parent topic: General Data Structures