SL_Bodies Struct Reference

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

Data Fields

int nb_bodies
 Number of detected bodies/persons. More...
 
unsigned long long timestamp
 Timestamp corresponding to the frame acquisition. More...
 
int is_new
 Whether body_list has already been retrieved or not.
 
int is_tracked
 Whether both the body tracking and the world orientation has been setup.
 
enum SL_INFERENCE_PRECISION inference_precision_mode
 Status of the actual inference precision mode used to detect the bodies/persons. More...
 
enum SL_BODY_FORMAT body_format
 Body format used in sl::BodyTrackingParameters.body_format parameter.
 
struct SL_BodyData body_list [MAX_NUMBER_OBJECT]
 Array of bodies/persons. More...
 

Detailed Description

Structure containing the results of the body tracking module.

The detected bodies/persons are listed in body_list.

Field Documentation

◆ nb_bodies

int SL_Bodies::nb_bodies

Number of detected bodies/persons.

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

◆ timestamp

unsigned long long SL_Bodies::timestamp

Timestamp corresponding to the frame acquisition.

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

◆ inference_precision_mode

enum SL_INFERENCE_PRECISION SL_Bodies::inference_precision_mode

Status of the actual inference precision mode used to detect the bodies/persons.

Note
It depends on the GPU hardware support, the sl::BodyTrackingParameters.allow_reduced_precision_inference input parameter and the model support.

◆ body_list

struct SL_BodyData SL_Bodies::body_list[MAX_NUMBER_OBJECT]

Array of 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 objects in the image.