SL_Objects Struct Reference

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

Data Fields

int nb_objects
 Number of detected objects. More...
 
uint64_t timestamp
 Timestamp corresponding to the frame acquisition. More...
 
int is_new
 Whether object_list has already been retrieved or not.
 
int is_tracked
 Whether both the object tracking and the world orientation has been setup.
 
enum SL_OBJECT_DETECTION_MODEL detection_model
 Current SL_OBJECT_DETECTION_MODEL used.
 
struct SL_ObjectData object_list [MAX_NUMBER_OBJECT]
 Array of detected objects. More...
 
char fused_objects_group_name [128]
 Name of the group these objects belong to when fused, as set in SL_ObjectDetectionParameters. More...
 

Detailed Description

Structure containing the results of the object detection module.

The detected objects are listed in object_list.

Note
Since the data is transmitted from C++ to C, the size of the structure must be constant.
Therefore, there is a limitation of 75 objects in the image.

Field Documentation

◆ nb_objects

int SL_Objects::nb_objects

Number of detected objects.

Note
You can use it to iterate through the object_list array.

◆ timestamp

uint64_t SL_Objects::timestamp

Timestamp corresponding to the frame acquisition.

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

◆ object_list

struct SL_ObjectData SL_Objects::object_list[MAX_NUMBER_OBJECT]

Array of detected objects.

Note
Since the data is transmitted from C++ to C, the size of the structure must be constant.
Therefore, there is a limitation of 75 objects in the image.

◆ fused_objects_group_name

char SL_Objects::fused_objects_group_name[128]

Name of the group these objects belong to when fused, as set in SL_ObjectDetectionParameters.

Note
Empty when the detector was not given a group name. Truncated to 127 characters.