Bodies Class Reference

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

Functions

Timestamp timestamp (self)
 Timestamp corresponding to the frame acquisition. More...
 
list[BodyDatabody_list (self)
 List of detected bodies/persons.
 
bool is_new (self)
 Whether object_list has already been retrieved or not. More...
 
bool is_tracked (self)
 Whether both the body tracking and the world orientation has been setup. More...
 
BODY_FORMAT body_format (self)
 Body format used in sl.BodyTrackingParameters.body_format parameter.
 
INFERENCE_PRECISION inference_precision_mode (self)
 Status of the actual inference precision mode used to detect the bodies/persons. More...
 
bool get_body_data_from_id (self, BodyData py_body_data, int body_data_id)
 Method that looks for a given body id in the current bodies list. More...
 

Detailed Description

Class containing the results of the body tracking module.

The detected bodies/persons are listed in body_list.

Functions

◆ timestamp()

Timestamp timestamp (   self)

◆ is_new()

bool is_new (   self)

Whether object_list has already been retrieved or not.

Default: False

◆ is_tracked()

bool is_tracked (   self)

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

Default: False

◆ inference_precision_mode()

INFERENCE_PRECISION inference_precision_mode (   self)

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.

◆ get_body_data_from_id()

bool get_body_data_from_id (   self,
BodyData  py_body_data,
int  body_data_id 
)

Method that looks for a given body id in the current bodies list.

Parameters
py_body_data[out]: sl.BodyData to fill if the search succeeded.
body_data_id[in]: Id of the sl.BodyData to search.
Returns
True if found, otherwise False.