Objects Struct Reference

Structure containing the results of the object detection module. It contains the number of object in the scene (numObject) and the objectData structure for each object. More...

Functions

bool GetObjectDataFromId (ref sl.ObjectData objectData, int objectDataId)
 Function that looks for a given object id in the current objects list. More...
 

Attributes

int numObject
 Number of detected objects. More...
 
ulong timestamp
 Timestamp corresponding to the frame acquisition. More...
 
int isNew
 Whether objectData has already been retrieved or not. More...
 
int isTracked
 Whether both the object tracking and the world orientation has been setup. More...
 
sl.OBJECT_DETECTION_MODEL detectionModel
 Current sl.OBJECT_DETECTION_MODEL used. More...
 
ObjectData[] objectData
 Array of detected objects. More...
 

Detailed Description

Structure containing the results of the object detection module. It contains the number of object in the scene (numObject) and the objectData structure for each object.

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 (sl.Constant.MAX_OBJECTS) objects in the image.

Functions

◆ GetObjectDataFromId()

bool GetObjectDataFromId ( ref sl.ObjectData  objectData,
int  objectDataId 
)
inline

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

Parameters
objectData[Out] sl.ObjectData to fill if the search succeeded.
objectDataId[In] Id of the sl.ObjectData to search.
Returns
True if found, otherwise False.

Variables

◆ numObject

int numObject

Number of detected objects.

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

Referenced by Objects.GetObjectDataFromId().

◆ timestamp

ulong timestamp

Timestamp corresponding to the frame acquisition.

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

◆ isNew

int isNew

Whether objectData has already been retrieved or not.

◆ isTracked

int isTracked

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

◆ detectionModel

◆ objectData

ObjectData [] objectData

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 (sl.Constant.MAX_OBJECTS) objects in the image.

Referenced by Objects.GetObjectDataFromId().