Class containing data of a detected object such as its bounding_box, label, id and its 3D position. More...
Functions | |
ObjectData () | |
Default constructor. More... | |
~ObjectData () | |
Default destructor. More... | |
Attributes | |
int | id |
Object identification number. More... | |
String | unique_object_id |
Unique id to help identify and track AI detections. More... | |
int | raw_label = 0 |
Object raw label. More... | |
OBJECT_CLASS | label |
Object class/category to identify the object type. More... | |
OBJECT_SUBCLASS | sublabel |
Object sub-class/sub-category to identify the object type. More... | |
OBJECT_TRACKING_STATE | tracking_state |
Object tracking state. More... | |
OBJECT_ACTION_STATE | action_state |
Object action state. More... | |
sl::float3 | position |
Object 3D centroid. More... | |
sl::float3 | velocity |
Object 3D velocity. More... | |
float | position_covariance [6] |
Covariance matrix of the 3D position. More... | |
std::vector< sl::uint2 > | bounding_box_2d |
2D bounding box of the object represented as four 2D points starting at the top left corner and rotation clockwise. More... | |
sl::Mat | 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... | |
float | confidence |
Detection confidence value of the object. More... | |
std::vector< sl::float3 > | bounding_box |
3D bounding box of the object represented as eight 3D points. More... | |
sl::float3 | dimensions |
3D object dimensions: width, height, length. More... | |
std::vector< sl::uint2 > | head_bounding_box_2d |
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... | |
std::vector< sl::float3 > | head_bounding_box |
3D bounding box of the head of the object (a person) represented as eight 3D points. More... | |
sl::float3 | head_position |
3D centroid of the head of the object (a person). More... | |
Class containing data of a detected object such as its bounding_box, label, id and its 3D position.
ObjectData | ( | ) |
Default constructor.
~ObjectData | ( | ) |
Default destructor.
int id |
Object identification number.
It is used as a reference when tracking the object through the frames.
String unique_object_id |
Unique id to help identify and track AI detections.
It can be either generated externally, or by using generate_unique_id() or left empty.
int raw_label = 0 |
Object raw label.
It is forwarded from sl::CustomBoxObjectData when using sl::OBJECT_DETECTION_MODEL::CUSTOM_BOX_OBJECTS.
OBJECT_CLASS label |
Object class/category to identify the object type.
OBJECT_SUBCLASS sublabel |
Object sub-class/sub-category to identify the object type.
OBJECT_TRACKING_STATE tracking_state |
Object tracking state.
OBJECT_ACTION_STATE action_state |
Object action state.
sl::float3 position |
Object 3D centroid.
sl::float3 velocity |
Object 3D velocity.
sl::InitParameters.coordinate_units / s
and expressed in sl::RuntimeParameters.measure3D_reference_frame. float position_covariance[6] |
Covariance matrix of the 3D position.
position_covariance[i]
std::vector<sl::uint2> bounding_box_2d |
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. sl::Mat 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).
mask.isInit() == false
). float 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.
std::vector<sl::float3> bounding_box |
3D bounding box of the object represented as eight 3D points.
sl::float3 dimensions |
3D object dimensions: width, height, length.
std::vector<sl::uint2> head_bounding_box_2d |
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. std::vector<sl::float3> head_bounding_box |
3D bounding box of the head of the object (a person) represented as eight 3D points.
sl::float3 head_position |
3D centroid of the head of the object (a person).