Table of Contents

Class DetectionFilter

Namespace
VisioForge.Core.AI.Analytics
Assembly
VisioForge.Core.AI.dll

Applies VisioForge.Core.Types.X.AI.DetectionFilterSettings to an array of detections.

public static class DetectionFilter

Inheritance

Inherited Members

Remarks

Filtering order:

  1. Reject null detections and boxes.
  2. Reject boxes with width or height less than or equal to zero.
  3. If IncludedClassIds is non-empty, retain only included classes.
  4. Apply ExcludedClassIds; exclusion wins if an ID is in both lists.
  5. Reject boxes whose integer pixel area is less than MinimumBoxArea. Confidence filtering is NOT performed here.

Methods

Apply(OnnxDetection[], DetectionFilterSettings)

Applies the specified filter settings to the detection array. Returns a new array but may retain detection object references because detections are not modified.

public static OnnxDetection[] Apply(OnnxDetection[] detections, DetectionFilterSettings settings)

Parameters

detections OnnxDetection[]

The input detections. Null is treated as empty.

settings DetectionFilterSettings

The filter settings. Null or empty settings produce the original array.

Returns

OnnxDetection[]

The filtered detections.