Structure containing data of a detected object such as its bounding_box, label, id and its 3D position. More...
Data Fields | |
int | id |
Object identification number. More... | |
unsigned char | unique_object_id [37] |
Unique id to help identify and track AI detections. More... | |
int | raw_label |
Object raw label. More... | |
enum SL_OBJECT_CLASS | label |
Object class/category to identify the object type. | |
enum SL_OBJECT_SUBCLASS | sublabel |
Object sub-class/sub-category to identify the object type. | |
enum SL_OBJECT_TRACKING_STATE | tracking_state |
Object tracking state. | |
enum SL_OBJECT_ACTION_STATE | action_state |
Object action state. | |
struct SL_Vector3 | position |
Object 3D centroid. More... | |
float | confidence |
Detection confidence value of the object. More... | |
int * | mask |
Mask defining which pixels which belong to the object (in bounding_box_2d and set to 255) and those of the background (set to 0). More... | |
struct SL_Vector2 | bounding_box_2d [4] |
2D bounding box of the object represented as four 2D points starting at the top left corner and rotation clockwise. More... | |
struct SL_Vector3 | head_position |
3D centroid of the head of the object (a person). More... | |
struct SL_Vector3 | velocity |
Defines the object 3D velocity. More... | |
struct SL_Vector3 | dimensions |
3D object dimensions: width, height, length. More... | |
struct SL_Vector3 | bounding_box [8] |
3D bounding box of the object represented as eight 3D points. More... | |
struct SL_Vector3 | head_bounding_box [8] |
3D bounding box of the head of the object (a person) represented as eight 3D points. More... | |
struct SL_Vector2 | head_bounding_box_2d [4] |
2D bounding box of the head of the object (a person) represented as four 2D points starting at the top left corner and rotation clockwise. More... | |
float | position_covariance [6] |
Covariance matrix of the 3D position. More... | |
Structure containing data of a detected object such as its bounding_box, label, id and its 3D position.
int SL_ObjectData::id |
Object identification number.
It is used as a reference when tracking the object through the frames.
unsigned char SL_ObjectData::unique_object_id[37] |
Unique id to help identify and track AI detections.
It can be either generated externally, or by using sl_generate_unique_id() or left empty.
int SL_ObjectData::raw_label |
Object raw label.
It is forwarded from SL_CustomBoxObjectData when using SL_OBJECT_DETECTION_MODEL_CUSTOM_BOX_OBJECTS.
struct SL_Vector3 SL_ObjectData::position |
Object 3D centroid.
float SL_ObjectData::confidence |
Detection confidence value of the object.
From 0 to 100, a low value means the object might not be localized perfectly or the label (SL_OBJECT_CLASS) is uncertain.
int* SL_ObjectData::mask |
Mask defining which pixels which belong to the object (in bounding_box_2d and set to 255) and those of the background (set to 0).
struct SL_Vector2 SL_ObjectData::bounding_box_2d[4] |
2D bounding box of the object represented as four 2D points starting at the top left corner and rotation clockwise.
[0, 0]
is the top left corner. struct SL_Vector3 SL_ObjectData::head_position |
3D centroid of the head of the object (a person).
struct SL_Vector3 SL_ObjectData::velocity |
Defines the object 3D velocity.
SL_InitParameters.coordinate_unit / s
and expressed in SL_RuntimeParameters.reference_frame. struct SL_Vector3 SL_ObjectData::dimensions |
3D object dimensions: width, height, length.
struct SL_Vector3 SL_ObjectData::bounding_box[8] |
3D bounding box of the object represented as eight 3D points.
struct SL_Vector3 SL_ObjectData::head_bounding_box[8] |
3D bounding box of the head of the object (a person) represented as eight 3D points.
struct SL_Vector2 SL_ObjectData::head_bounding_box_2d[4] |
2D bounding box of the head of the object (a person) represented as four 2D points starting at the top left corner and rotation clockwise.
[0, 0]
is the top left corner. float SL_ObjectData::position_covariance[6] |
Covariance matrix of the 3D position.
position_covariance[i]