ObjectsBatch Class Reference

Class containing batched data of a detected objects from the object detection module. More...

Attributes

int id
 Id of the batch. More...
 
OBJECT_CLASS label
 Objects class/category to identify the object type. More...
 
OBJECT_SUBCLASS sublabel
 Objects sub-class/sub-category to identify the object type. More...
 
OBJECT_TRACKING_STATE tracking_state
 Objects tracking state. More...
 
std::vector< sl::float3positions
 Vector of positions for each object. More...
 
std::vector< std::array< float, 6 > > position_covariances
 Vector of positions' covariances for each object. More...
 
std::vector< sl::float3velocities
 Vector of 3D velocities for each object. More...
 
std::vector< sl::Timestamptimestamps
 Vector of timestamps for each object. More...
 
std::vector< std::vector< sl::float3 > > bounding_boxes
 Vector of 3D bounding boxes for each object. More...
 
std::vector< std::vector< sl::uint2 > > bounding_boxes_2d
 Vector of 2D bounding boxes for each object. More...
 
std::vector< float > confidences
 Vector of confidences for each object. More...
 
std::vector< OBJECT_ACTION_STATEaction_states
 Vector of action states for each object. More...
 
std::vector< std::vector< sl::uint2 > > head_bounding_boxes_2d
 Vector of 2D bounding box of the head for each object (person). More...
 
std::vector< std::vector< sl::float3 > > head_bounding_boxes
 Vector of 3D bounding box of the head for each object (person). More...
 
std::vector< sl::float3head_positions
 Vector of 3D centroid of the head for each object (person). More...
 

Detailed Description

Class containing batched data of a detected objects from the object detection module.

This class can be used to store trajectories.

Variables

◆ id

int id

Id of the batch.

◆ label

OBJECT_CLASS label

Objects class/category to identify the object type.

◆ sublabel

OBJECT_SUBCLASS sublabel

Objects sub-class/sub-category to identify the object type.

◆ tracking_state

OBJECT_TRACKING_STATE tracking_state

Objects tracking state.

◆ positions

std::vector<sl::float3> positions

Vector of positions for each object.

◆ position_covariances

std::vector<std::array<float, 6 > > position_covariances

Vector of positions' covariances for each object.

◆ velocities

std::vector<sl::float3> velocities

Vector of 3D velocities for each object.

◆ timestamps

std::vector<sl::Timestamp> timestamps

Vector of timestamps for each object.

◆ bounding_boxes

std::vector<std::vector<sl::float3> > bounding_boxes

Vector of 3D bounding boxes for each object.

Note
They are defined in sl::InitParameters.coordinate_units and expressed in sl::RuntimeParameters.measure3D_reference_frame.
1 ------ 2
/ /|
0 ------ 3 |
| Object | 6
| |/
4 ------ 7

◆ bounding_boxes_2d

std::vector<std::vector<sl::uint2> > bounding_boxes_2d

Vector of 2D bounding boxes for each object.

Note
Expressed in pixels on the original image resolution, [0, 0] is the top left corner.
A ------ B
| Object |
D ------ C

◆ confidences

std::vector<float> confidences

Vector of confidences for each object.

◆ action_states

std::vector<OBJECT_ACTION_STATE> action_states

Vector of action states for each object.

◆ head_bounding_boxes_2d

std::vector<std::vector<sl::uint2> > head_bounding_boxes_2d

Vector of 2D bounding box of the head for each object (person).

Note
Expressed in pixels on the original image resolution, [0, 0] is the top left corner.
Warning
Not available with sl::OBJECT_DETECTION_MODEL::MULTI_CLASS_BOX_XXX.

◆ head_bounding_boxes

std::vector<std::vector<sl::float3> > head_bounding_boxes

Vector of 3D bounding box of the head for each object (person).

Note
They are defined in sl::InitParameters.coordinate_units and expressed in sl::RuntimeParameters.measure3D_reference_frame.
Warning
Not available with sl::OBJECT_DETECTION_MODEL::MULTI_CLASS_BOX_XXX.

◆ head_positions

std::vector<sl::float3> head_positions

Vector of 3D centroid of the head for each object (person).

Note
They are defined in sl::InitParameters.coordinate_units and expressed in sl::RuntimeParameters.measure3D_reference_frame.
Warning
Not available with sl::OBJECT_DETECTION_MODEL::MULTI_CLASS_BOX_XXX.