Class containing a set of parameters for the body tracking module. More...
Functions | |
BodyTrackingParameters | __cinit__ (self, enable_tracking=True, enable_segmentation=True, detection_model=BODY_TRACKING_MODEL.HUMAN_BODY_ACCURATE, enable_body_fitting=False, max_range=-1.0, body_format=BODY_FORMAT.BODY_18, body_selection=BODY_KEYPOINTS_SELECTION.FULL, prediction_timeout_s=0.2, allow_reduced_precision_inference=False, instance_module_id=0) |
Default constructor. More... | |
bool | enable_tracking (self) |
Whether the body tracking system includes body/person tracking capabilities across a sequence of images. More... | |
bool | enable_segmentation (self) |
Whether the body/person masks will be computed. More... | |
BODY_TRACKING_MODEL | detection_model (self) |
sl.BODY_TRACKING_MODEL to use. More... | |
BODY_FORMAT | body_format (self) |
Body format to be outputted by the ZED SDK with sl.Camera.retrieve_bodies(). More... | |
BODY_KEYPOINTS_SELECTION | body_selection (self) |
Selection of keypoints to be outputted by the ZED SDK with sl.Camera.retrieve_bodies(). More... | |
bool | enable_body_fitting (self) |
Whether to apply the body fitting. More... | |
float | max_range (self) |
Upper depth range for detections. More... | |
float | prediction_timeout_s (self) |
Prediction duration of the ZED SDK when an object is not detected anymore before switching its state to sl.OBJECT_TRACKING_STATE.SEARCHING. More... | |
bool | allow_reduced_precision_inference (self) |
Whether to allow inference to run at a lower precision to improve runtime and memory usage. More... | |
int | instance_module_id (self) |
Id of the module instance. More... | |
Class containing a set of parameters for the body tracking module.
The default constructor sets all parameters to their default settings.
BodyTrackingParameters __cinit__ | ( | self, | |
enable_tracking = True , |
|||
enable_segmentation = True , |
|||
detection_model = BODY_TRACKING_MODEL.HUMAN_BODY_ACCURATE , |
|||
enable_body_fitting = False , |
|||
max_range = -1.0 , |
|||
body_format = BODY_FORMAT.BODY_18 , |
|||
body_selection = BODY_KEYPOINTS_SELECTION.FULL , |
|||
prediction_timeout_s = 0.2 , |
|||
allow_reduced_precision_inference = False , |
|||
instance_module_id = 0 |
|||
) |
Default constructor.
All the parameters are set to their default values.
enable_tracking | : Activates enable_tracking |
enable_segmentation | : Activates enable_segmentation |
detection_model | : Chosen detection_model |
enable_body_fitting | : Activates enable_body_fitting |
max_range | : Chosen max_range |
body_format | : Chosen body_format |
body_selection | : Chosen body_selection |
prediction_timeout_s | : Chosen prediction_timeout_s |
allow_reduced_precision_inference | : Activates allow_reduced_precision_inference |
instance_module_id | : Chosen instance_module_id |
bool enable_tracking | ( | self | ) |
Whether the body tracking system includes body/person tracking capabilities across a sequence of images.
Default: True
bool enable_segmentation | ( | self | ) |
Whether the body/person masks will be computed.
Default: False
BODY_TRACKING_MODEL detection_model | ( | self | ) |
sl.BODY_TRACKING_MODEL to use.
BODY_FORMAT body_format | ( | self | ) |
Body format to be outputted by the ZED SDK with sl.Camera.retrieve_bodies().
Default: sl.BODY_FORMAT.BODY_18
BODY_KEYPOINTS_SELECTION body_selection | ( | self | ) |
Selection of keypoints to be outputted by the ZED SDK with sl.Camera.retrieve_bodies().
Default: sl.BODY_KEYPOINTS_SELECTION.FULL
bool enable_body_fitting | ( | self | ) |
Whether to apply the body fitting.
Default: False
float max_range | ( | self | ) |
Upper depth range for detections.
Default: -1 (value set in sl.InitParameters.depth_maximum_distance)
float prediction_timeout_s | ( | self | ) |
Prediction duration of the ZED SDK when an object is not detected anymore before switching its state to sl.OBJECT_TRACKING_STATE.SEARCHING.
It prevents the jittering of the object state when there is a short misdetection.
The user can define their own prediction time duration.
Default: 0.2
bool allow_reduced_precision_inference | ( | self | ) |
Whether to allow inference to run at a lower precision to improve runtime and memory usage.
It might increase the initial optimization time and could include downloading calibration data or calibration cache and slightly reduce the accuracy.
int instance_module_id | ( | self | ) |
Id of the module instance.
This is used to identify which body tracking module instance is used.