SL_ObjectDetectionRuntimeParameters Struct Reference

Structure containing a set of runtime parameters for the object detection module. More...

Data Fields

float detection_confidence_threshold
 Confidence threshold. More...
 
int object_class_filter [(int) SL_OBJECT_CLASS_LAST]
 Defines which object types to detect and track. More...
 
int object_confidence_threshold [(int) SL_OBJECT_CLASS_LAST]
 Array of confidence thresholds for each class (can be empty for some classes). More...
 

Detailed Description

Structure containing a set of runtime parameters for the object detection module.

The default constructor sets all parameters to their default settings.

Note
Parameters can be adjusted by the user.

Field Documentation

◆ detection_confidence_threshold

float SL_ObjectDetectionRuntimeParameters::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

Note
If the scene contains a lot of objects, increasing the confidence can slightly speed up the process, since every object instance is tracked.
detection_confidence_threshold is used as a fallback when SL_ObjectDetectionRuntimeParameters.object_confidence_threshold is partially set

◆ object_class_filter

int SL_ObjectDetectionRuntimeParameters::object_class_filter[(int) SL_OBJECT_CLASS_LAST]

Defines which object types to detect and track.

Note
Fewer object types can slightly speed up the process since every object is tracked.
Will output only the selected classes.

◆ object_confidence_threshold

int SL_ObjectDetectionRuntimeParameters::object_confidence_threshold[(int) SL_OBJECT_CLASS_LAST]

Array of confidence thresholds for each class (can be empty for some classes).

Note
SL_ObjectDetectionRuntimeParameters.detection_confidence_threshold will be taken as fallback/default value.