SL_Objects Struct Reference

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

Data Fields

int nb_objects
 Number of detected objects. More...
 
unsigned long long 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...
 

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

unsigned long long 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.