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 DetectionFilterInheritance
Inherited Members
Remarks
Filtering order:
- Reject null detections and boxes.
- Reject boxes with width or height less than or equal to zero.
- If
IncludedClassIdsis non-empty, retain only included classes. - Apply
ExcludedClassIds; exclusion wins if an ID is in both lists. - 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
detectionsOnnxDetection[]-
The input detections. Null is treated as empty.
settingsDetectionFilterSettings-
The filter settings. Null or empty settings produce the original array.
Returns
- OnnxDetection[]
-
The filtered detections.