Structure containing a set of runtime parameters for the body tracking module. More...
Functions | |
| BodyTrackingRuntimeParameters (float detection_confidence_threshold=20.f, int minimum_keypoints_threshold=0, float skeleton_smoothing=0.f) | |
| Default constructor. More... | |
| bool | save (String filename) const |
| Saves the current set of parameters into a file to be reloaded with the load() method. More... | |
| bool | load (String filename) |
| Loads a set of parameters from the values contained in a previously saved file. More... | |
| bool | encode (String &serialized_content) const |
| Generate a JSON Object (with the struct type as a key) containing the serialized struct, converted into a string. More... | |
| bool | decode (const String &serialized_content) |
| Fill the structure from the serialized json object contained in the input string. More... | |
| bool | operator== (const BodyTrackingRuntimeParameters ¶m1) const |
| bool | operator!= (const BodyTrackingRuntimeParameters ¶m1) const |
Attributes | |
| float | detection_confidence_threshold |
| Confidence threshold. More... | |
| int | minimum_keypoints_threshold |
| Minimum threshold for the keypoints. More... | |
| float | skeleton_smoothing = 0.f |
| Control of the smoothing of the fitted fused skeleton. More... | |
Structure containing a set of runtime parameters for the body tracking module.
The default constructor sets all parameters to their default settings.
| BodyTrackingRuntimeParameters | ( | float | detection_confidence_threshold = 20.f, |
| int | minimum_keypoints_threshold = 0, |
||
| float | skeleton_smoothing = 0.f |
||
| ) |
Default constructor.
All the parameters are set to their default values.
| bool save | ( | String | filename | ) | const |
Saves the current set of parameters into a file to be reloaded with the load() method.
| filename | : Name of the file which will be created to store the parameters (extension '.json' will be added if not set). |
| bool load | ( | String | filename | ) |
Loads a set of parameters from the values contained in a previously saved file.
| filename | : Path to the file from which the parameters will be loaded (extension '.json' will be added at the end of the filename if not detected). |
| bool encode | ( | String & | serialized_content | ) | const |
Generate a JSON Object (with the struct type as a key) containing the serialized struct, converted into a string.
| serialized_content | output string containing the JSON Object |
| bool decode | ( | const String & | serialized_content | ) |
Fill the structure from the serialized json object contained in the input string.
| serialized_content | input string containing the JSON Object |
| bool operator== | ( | const BodyTrackingRuntimeParameters & | param1 | ) | const |
Comparison operator ==
| param1 | to compare |
| bool operator!= | ( | const BodyTrackingRuntimeParameters & | param1 | ) | const |
Comparison operator !=
| param1 | to compare |
| float detection_confidence_threshold |
Confidence threshold.
From 1 to 100, with 1 meaning a low threshold, more uncertain objects and 99 very few but very precise objects.
Default: 20.f
| int minimum_keypoints_threshold |
Minimum threshold for the keypoints.
The ZED SDK will only output the keypoints of the skeletons with threshold greater than this value.
Default: 0
| float skeleton_smoothing = 0.f |
Control of the smoothing of the fitted fused skeleton.
It is ranged from 0 (low smoothing) and 1 (high smoothing).