Structure containing a set of runtime properties of a certain class ID for the object detection module using a custom model. More...
Functions | |
CustomObjectDetectionProperties (const bool enabled=true, const float detection_confidence_threshold=20.f, const bool is_grounded=true, const bool is_static=false, const float tracking_timeout=-1.f, const float tracking_max_dist=-1.f, const float max_box_width_normalized=-1.f, const float min_box_width_normalized=-1.f, const float max_box_height_normalized=-1.f, const float min_box_height_normalized=-1.f) | |
bool | save (const String &filename, SERIALIZATION_FORMAT format=SERIALIZATION_FORMAT::JSON) const |
Saves the current set of parameters into a file to be reloaded with the load() method. More... | |
bool | load (const String &filename, SERIALIZATION_FORMAT format=SERIALIZATION_FORMAT::JSON) |
Loads a set of parameters from the values contained in a previously saved file. More... | |
bool | encode (String &serialized_content, SERIALIZATION_FORMAT format=SERIALIZATION_FORMAT::JSON) 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, SERIALIZATION_FORMAT format=SERIALIZATION_FORMAT::JSON) |
Fill the structure from the serialized json object contained in the input string. More... | |
bool | operator== (const CustomObjectDetectionProperties &props) const |
bool | operator!= (const CustomObjectDetectionProperties &props) const |
Attributes | |
bool | enabled |
Whether the object object is kept or not. More... | |
float | detection_confidence_threshold |
Confidence threshold. More... | |
bool | is_grounded |
Provide hypothesis about the object movements (degrees of freedom or DoF) to improve the object tracking. More... | |
bool | is_static |
Provide hypothesis about the object staticity to improve the object tracking. More... | |
float | tracking_timeout |
Maximum tracking time threshold (in seconds) before dropping the tracked object when unseen for this amount of time. More... | |
float | tracking_max_dist |
Maximum tracking distance threshold (in meters) before dropping the tracked object when unseen for this amount of meters. More... | |
float | max_box_width_normalized |
Maximum allowed width normalized to the image size. More... | |
float | min_box_width_normalized |
Minimum allowed width normalized to the image size. More... | |
float | max_box_height_normalized |
Maximum allowed height normalized to the image size. More... | |
float | min_box_height_normalized |
Minimum allowed height normalized to the image size. More... | |
Structure containing a set of runtime properties of a certain class ID for the object detection module using a custom model.
The default constructor sets all parameters to their default settings.
CustomObjectDetectionProperties | ( | const bool | enabled = true , |
const float | detection_confidence_threshold = 20.f , |
||
const bool | is_grounded = true , |
||
const bool | is_static = false , |
||
const float | tracking_timeout = -1.f , |
||
const float | tracking_max_dist = -1.f , |
||
const float | max_box_width_normalized = -1.f , |
||
const float | min_box_width_normalized = -1.f , |
||
const float | max_box_height_normalized = -1.f , |
||
const float | min_box_height_normalized = -1.f |
||
) |
bool save | ( | const String & | filename, |
SERIALIZATION_FORMAT | format = SERIALIZATION_FORMAT::JSON |
||
) | 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 '.yml' will be added if not set). |
bool load | ( | const String & | filename, |
SERIALIZATION_FORMAT | format = SERIALIZATION_FORMAT::JSON |
||
) |
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 '.yml' will be added at the end of the filename if not detected). |
bool encode | ( | String & | serialized_content, |
SERIALIZATION_FORMAT | format = SERIALIZATION_FORMAT::JSON |
||
) | 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 |
format | serialization format, default is JSON |
bool decode | ( | const String & | serialized_content, |
SERIALIZATION_FORMAT | format = SERIALIZATION_FORMAT::JSON |
||
) |
Fill the structure from the serialized json object contained in the input string.
serialized_content | input string containing the JSON Object |
format | serialization format, default is JSON |
bool operator== | ( | const CustomObjectDetectionProperties & | props | ) | const |
Comparison operator ==
props | CustomObjectDetectionProperties to compare |
bool operator!= | ( | const CustomObjectDetectionProperties & | props | ) | const |
Comparison operator !=
props | CustomObjectDetectionProperties to compare |
bool enabled |
Whether the object object is kept or not.
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
bool is_grounded |
Provide hypothesis about the object movements (degrees of freedom or DoF) to improve the object tracking.
bool is_static |
Provide hypothesis about the object staticity to improve the object tracking.
float tracking_timeout |
Maximum tracking time threshold (in seconds) before dropping the tracked object when unseen for this amount of time.
By default, let the tracker decide internally based on the internal sub class of the tracked object. Only valid for static object.
float tracking_max_dist |
Maximum tracking distance threshold (in meters) before dropping the tracked object when unseen for this amount of meters.
By default, do not discard tracked object based on distance. Only valid for static object.
float max_box_width_normalized |
Maximum allowed width normalized to the image size.
Any prediction bigger than that will be filtered out. Default: -1 (no filtering)
float min_box_width_normalized |
Minimum allowed width normalized to the image size.
Any prediction smaller than that will be filtered out. Default: -1 (no filtering)
float max_box_height_normalized |
Maximum allowed height normalized to the image size.
Any prediction bigger than that will be filtered out. Default: -1 (no filtering)
float min_box_height_normalized |
Minimum allowed height normalized to the image size.
Any prediction smaller than that will be filtered out. Default: -1 (no filtering)