ObjectDetectionRuntimeParameters Struct Reference

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

Attributes

float detectionConfidenceThreshold
 Confidence threshold. More...
 
int[] objectClassFilter
 Defines which object types to detect and track. More...
 
int[] objectConfidenceThreshold
 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.

Variables

◆ detectionConfidenceThreshold

float detectionConfidenceThreshold

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.
detectionConfidenceThreshold is used as a fallback when sl::ObjectDetectionRuntimeParameters.objectConfidenceThreshold is partially set.

◆ objectClassFilter

int [] objectClassFilter

Defines which object types to detect and track.

Default: new int[(int)sl.OBJECT_CLASS.LAST)] (all classes are tracked)

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

In order to get all the available classes, the filter list must be empty :

objectClassFilter = new int[(int)sl.OBJECT_CLASS.LAST)];
Definition: ZEDCamera.cs:9
int[] objectClassFilter
Defines which object types to detect and track.
Definition: ZEDCommon.cs:3541

To select a set of specific object classes, like vehicles, persons and animals for instance:

objectClassFilter[(int)sl.OBJECT_CLASS.PERSON] = Convert.ToInt32(true);
objectClassFilter[(int)sl.OBJECT_CLASS.VEHICLE] = Convert.ToInt32(true);
objectClassFilter[(int)sl.OBJECT_CLASS.ANIMAL] = Convert.ToInt32(true);

◆ objectConfidenceThreshold

int [] objectConfidenceThreshold

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

Note
sl::ObjectDetectionRuntimeParameters.detectionConfidenceThreshold will be taken as fallback/default value.