Structure containing a set of runtime parameters for the object detection module. More...
Functions | |
ObjectDetectionRuntimeParameters (float detection_confidence_threshold=20.f, std::vector< OBJECT_CLASS > object_class_filter={}, std::map< OBJECT_CLASS, float > object_class_detection_confidence_threshold=std::map< OBJECT_CLASS, float >()) | |
Default constructor. More... | |
bool | operator== (const ObjectDetectionRuntimeParameters ¶m1) const |
bool | operator!= (const ObjectDetectionRuntimeParameters ¶m1) const |
Attributes | |
float | detection_confidence_threshold |
Confidence threshold. More... | |
std::vector< OBJECT_CLASS > | object_class_filter |
Defines which object types to detect and track. More... | |
std::map< OBJECT_CLASS, float > | object_class_detection_confidence_threshold |
Map of confidence thresholds for each class (can be empty for some classes). More... | |
Structure containing a set of runtime parameters for the object detection module.
The default constructor sets all parameters to their default settings.
ObjectDetectionRuntimeParameters | ( | float | detection_confidence_threshold = 20.f , |
std::vector< OBJECT_CLASS > | object_class_filter = {} , |
||
std::map< OBJECT_CLASS, float > | object_class_detection_confidence_threshold = std::map< OBJECT_CLASS, float >() |
||
) |
Default constructor.
All the parameters are set to their default values.
bool operator== | ( | const ObjectDetectionRuntimeParameters & | param1 | ) | const |
Comparison operator ==
ObjectDetectionRuntimeParameters | to compare |
bool operator!= | ( | const ObjectDetectionRuntimeParameters & | param1 | ) | const |
Comparison operator !=
ObjectDetectionRuntimeParameters | 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
std::vector<OBJECT_CLASS> object_class_filter |
Defines which object types to detect and track.
Default: {} (all classes are tracked)
In order to get all the available classes, the filter vector must be empty :
To select a set of specific object classes, like vehicles, persons and animals for instance:
std::map<OBJECT_CLASS, float> object_class_detection_confidence_threshold |
Map of confidence thresholds for each class (can be empty for some classes).