Bodies Struct Reference

Structure containing the results of the body tracking module. More...

Attributes

int nbBodies
 Number of detected bodies/persons. More...
 
ulong timestamp
 Timestamp corresponding to the frame acquisition. More...
 
int isNew
 Whether bodiesList has already been retrieved or not. More...
 
int isTracked
 Whether both the body tracking and the world orientation has been setup. More...
 
BodyData[] bodiesList
 Array of detected bodies/persons. More...
 

Detailed Description

Structure containing the results of the body tracking module.

The detected bodies/persons are listed in bodiesList.

Variables

◆ nbBodies

int nbBodies

Number of detected bodies/persons.

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

◆ 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 bodiesList has already been retrieved or not.

◆ isTracked

int isTracked

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

◆ bodiesList

BodyData [] bodiesList

Array of detected bodies/persons.

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.