Structure containing a set of parameters for the body tracking module. More...
Functions | |
BodyTrackingParameters (bool enable_tracking_=true, bool enable_segmentation_=false, BODY_TRACKING_MODEL detection_model=BODY_TRACKING_MODEL::HUMAN_BODY_ACCURATE, bool enable_body_fitting_=false, float max_range_=-1.f, BODY_FORMAT body_format_=BODY_FORMAT::BODY_18, BODY_KEYPOINTS_SELECTION body_selection=BODY_KEYPOINTS_SELECTION::FULL, float prediction_timeout_s=0.2f, bool allow_reduced_precision_inference=false, unsigned int instance_id=0) | |
Default constructor. More... | |
bool | operator== (const BodyTrackingParameters ¶m1) const |
bool | operator!= (const BodyTrackingParameters ¶m1) const |
Attributes | |
unsigned int | instance_module_id = 0 |
Id of the module instance. More... | |
bool | enable_tracking = true |
Whether the body tracking system includes body/person tracking capabilities across a sequence of images. More... | |
bool | enable_segmentation = false |
Whether the body/person masks will be computed. More... | |
BODY_TRACKING_MODEL | detection_model = BODY_TRACKING_MODEL::HUMAN_BODY_ACCURATE |
sl::BODY_TRACKING_MODEL to use. More... | |
bool | enable_body_fitting = false |
Whether to apply the body fitting. More... | |
BODY_FORMAT | body_format = BODY_FORMAT::BODY_18 |
Body format to be outputted by the ZED SDK with sl::Camera.retrieveBodies(). More... | |
BODY_KEYPOINTS_SELECTION | body_selection = BODY_KEYPOINTS_SELECTION::FULL |
Selection of keypoints to outputted by the ZED SDK with sl::Camera.retrieveBodies(). More... | |
float | max_range = -1.f |
Upper depth range for detections. More... | |
float | prediction_timeout_s |
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 |
Whether to allow inference to run at a lower precision to improve runtime and memory usage. More... | |
Structure containing a set of parameters for the body tracking module.
The default constructor sets all parameters to their default settings.
BodyTrackingParameters | ( | bool | enable_tracking_ = true , |
bool | enable_segmentation_ = false , |
||
BODY_TRACKING_MODEL | detection_model = BODY_TRACKING_MODEL::HUMAN_BODY_ACCURATE , |
||
bool | enable_body_fitting_ = false , |
||
float | max_range_ = -1.f , |
||
BODY_FORMAT | body_format_ = BODY_FORMAT::BODY_18 , |
||
BODY_KEYPOINTS_SELECTION | body_selection = BODY_KEYPOINTS_SELECTION::FULL , |
||
float | prediction_timeout_s = 0.2f , |
||
bool | allow_reduced_precision_inference = false , |
||
unsigned int | instance_id = 0 |
||
) |
Default constructor.
All the parameters are set to their default values.
bool operator== | ( | const BodyTrackingParameters & | param1 | ) | const |
Comparison operator ==
BodyTrackingParameters | to compare |
bool operator!= | ( | const BodyTrackingParameters & | param1 | ) | const |
Comparison operator !=
BodyTrackingParameters | to compare |
unsigned int instance_module_id = 0 |
Id of the module instance.
This is used to identify which body tracking module instance is used.
bool enable_tracking = true |
Whether the body tracking system includes body/person tracking capabilities across a sequence of images.
bool enable_segmentation = false |
Whether the body/person masks will be computed.
BODY_TRACKING_MODEL detection_model = BODY_TRACKING_MODEL::HUMAN_BODY_ACCURATE |
sl::BODY_TRACKING_MODEL to use.
bool enable_body_fitting = false |
Whether to apply the body fitting.
BODY_FORMAT body_format = BODY_FORMAT::BODY_18 |
Body format to be outputted by the ZED SDK with sl::Camera.retrieveBodies().
BODY_KEYPOINTS_SELECTION body_selection = BODY_KEYPOINTS_SELECTION::FULL |
Selection of keypoints to outputted by the ZED SDK with sl::Camera.retrieveBodies().
float max_range = -1.f |
Upper depth range for detections.
Default: -1.f (value set in sl::InitParameters.depth_maximum_distance)
float prediction_timeout_s |
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.
bool allow_reduced_precision_inference |
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.