Sets the object detection parameters. More...
Functions | |
| ObjectDetectionParameters (bool image_sync_=true, bool enable_tracking_=true, bool enable_mask_output_=false, DETECTION_MODEL detection_model=DETECTION_MODEL::MULTI_CLASS_BOX, bool enable_body_fitting_=false, float max_range_=-1.f, BatchParameters batch_trajectories_parameters=BatchParameters(), BODY_FORMAT body_format_=BODY_FORMAT::POSE_18, OBJECT_FILTERING_MODE filtering_mode_=OBJECT_FILTERING_MODE::NMS3D, float prediction_timeout_s=0.2f, bool allow_reduced_precision_inference=false) | |
| Default constructor. Set all parameters to their default values. More... | |
| bool | operator== (const ObjectDetectionParameters ¶m1) const |
| bool | operator!= (const ObjectDetectionParameters ¶m1) const |
Attributes | |
| bool | image_sync = true |
| Defines if the object detection is synchronized to the image or runs in a separate thread. If set to true, the detection is run for every grab, otherwise, the thread runs at its own speed, which can lead to new detection once in a while. More... | |
| bool | enable_tracking = true |
| Defines if the object detection will track objects across images flow. More... | |
| bool | enable_mask_output = false |
| Defines if the mask object will be computed. More... | |
| DETECTION_MODEL | detection_model = DETECTION_MODEL::MULTI_CLASS_BOX |
| Enable human pose estimation with skeleton keypoints output. More... | |
| bool | enable_body_fitting = false |
| Defines if the body fitting will be applied. More... | |
| BODY_FORMAT | body_format = BODY_FORMAT::POSE_18 |
| Defines the body format outputed by the sdk when retrieveObjects is called. More... | |
| float | max_range = -1.f |
| Defines a upper depth range for detections. Defined in UNIT set at sl::Camera::open. Default value is set to sl::Initparameters::depth_maximum_distance (can not be higher). More... | |
| BatchParameters | batch_parameters |
| Batching system parameters. Batching system (introduced in 3.5) performs short-term re-identification with deep learning and trajectories filtering. BatchParameters::enable need to be true to use this feature (by default disabled) More... | |
| OBJECT_FILTERING_MODE | filtering_mode |
| Defines the filtering mode that should be applied to raw detections. Default value is set to OBJECT_FILTERING_MODE::NMS_3D to keep the same behavior as previous SDK version. More... | |
| float | prediction_timeout_s |
| When an object is not detected anymore, the SDK will predict its positions during a short period of time before its state switched to SEARCHING. It prevents the jittering of the object state when there is a short misdetection. The user can define its own prediction time duration. More... | |
| bool | allow_reduced_precision_inference |
| 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. More... | |
Sets the object detection parameters.
The default constructor sets all parameters to their default settings.
| ObjectDetectionParameters | ( | bool | image_sync_ = true, |
| bool | enable_tracking_ = true, |
||
| bool | enable_mask_output_ = false, |
||
| DETECTION_MODEL | detection_model = DETECTION_MODEL::MULTI_CLASS_BOX, |
||
| bool | enable_body_fitting_ = false, |
||
| float | max_range_ = -1.f, |
||
| BatchParameters | batch_trajectories_parameters = BatchParameters(), |
||
| BODY_FORMAT | body_format_ = BODY_FORMAT::POSE_18, |
||
| OBJECT_FILTERING_MODE | filtering_mode_ = OBJECT_FILTERING_MODE::NMS3D, |
||
| float | prediction_timeout_s = 0.2f, |
||
| bool | allow_reduced_precision_inference = false |
||
| ) |
Default constructor. Set all parameters to their default values.
| bool operator== | ( | const ObjectDetectionParameters & | param1 | ) | const |
Comparison operator ==
| ObjectDetectionParameters | to compare |
| bool operator!= | ( | const ObjectDetectionParameters & | param1 | ) | const |
Comparison operator !=
| ObjectDetectionParameters | to compare |
| bool image_sync = true |
Defines if the object detection is synchronized to the image or runs in a separate thread. If set to true, the detection is run for every grab, otherwise, the thread runs at its own speed, which can lead to new detection once in a while.
| bool enable_tracking = true |
Defines if the object detection will track objects across images flow.
| bool enable_mask_output = false |
Defines if the mask object will be computed.
| DETECTION_MODEL detection_model = DETECTION_MODEL::MULTI_CLASS_BOX |
Enable human pose estimation with skeleton keypoints output.
| bool enable_body_fitting = false |
Defines if the body fitting will be applied.
| BODY_FORMAT body_format = BODY_FORMAT::POSE_18 |
Defines the body format outputed by the sdk when retrieveObjects is called.
| float max_range = -1.f |
Defines a upper depth range for detections.
Defined in UNIT set at sl::Camera::open.
Default value is set to sl::Initparameters::depth_maximum_distance (can not be higher).
| BatchParameters batch_parameters |
Batching system parameters. Batching system (introduced in 3.5) performs short-term re-identification with deep learning and trajectories filtering.
BatchParameters::enable need to be true to use this feature (by default disabled)
| OBJECT_FILTERING_MODE filtering_mode |
Defines the filtering mode that should be applied to raw detections.
Default value is set to OBJECT_FILTERING_MODE::NMS_3D to keep the same behavior as previous SDK version.
| float prediction_timeout_s |
When an object is not detected anymore, the SDK will predict its positions during a short period of time before its state switched to SEARCHING.
It prevents the jittering of the object state when there is a short misdetection. The user can define its own prediction time duration.
| bool allow_reduced_precision_inference |
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.