Objects Class Reference

Class containing the results of the object detection module. More...

Functions

bool getObjectDataFromId (sl::ObjectData &objectData, int objectDataId)
 Method that looks for a given object id in the current objects list. More...
 

Attributes

sl::Timestamp timestamp
 Timestamp corresponding to the frame acquisition. More...
 
std::vector< sl::ObjectDataobject_list
 Vector of detected objects. More...
 
bool is_new = false
 Whether object_list has already been retrieved or not. More...
 
bool is_tracked = false
 Whether both the object tracking and the world orientation has been setup. More...
 
sl::String fused_objects_group_name
 In a multi camera setup, specify which group this model belongs to. More...
 

Detailed Description

Class containing the results of the object detection module.

The detected objects are listed in object_list.

Functions

◆ getObjectDataFromId()

bool getObjectDataFromId ( sl::ObjectData objectData,
int  objectDataId 
)

Method that looks for a given object id in the current objects list.

Parameters
[out]objectData: sl::ObjectData to fill if the search succeeded.
[in]objectDataId: Id of the sl::ObjectData to search.
Returns
True if found, otherwise false.

Variables

◆ timestamp

sl::Timestamp timestamp

Timestamp corresponding to the frame acquisition.

This value is especially useful for the async mode to synchronize the data.

◆ object_list

std::vector<sl::ObjectData> object_list

Vector of detected objects.

◆ is_new

bool is_new = false

Whether object_list has already been retrieved or not.

◆ is_tracked

bool is_tracked = false

Whether both the object tracking and the world orientation has been setup.

◆ fused_objects_group_name

sl::String fused_objects_group_name

In a multi camera setup, specify which group this model belongs to.

In a multi camera setup, multiple cameras can be used to detect objects and multiple detector having similar output layout can see the same object. Therefore, Fusion will fuse together the outputs received by multiple detectors only if they are part of the same fused_objects_group_name.