Class BoundingBoxMerger
java.lang.Object
rawDeepLearningClassifier.dlClassification.deepAcoustics.BoundingBoxMerger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<org.jamdev.jdl4pam.deepAcoustics.DeepAcousticsResult> combineBoxes(List<org.jamdev.jdl4pam.deepAcoustics.DeepAcousticsResult> boxes, double minOverlapThreshold) Combines overlapping bounding boxes from a list until no more merges can be performed.
-
Constructor Details
-
BoundingBoxMerger
public BoundingBoxMerger()
-
-
Method Details
-
combineBoxes
public static List<org.jamdev.jdl4pam.deepAcoustics.DeepAcousticsResult> combineBoxes(List<org.jamdev.jdl4pam.deepAcoustics.DeepAcousticsResult> boxes, double minOverlapThreshold) Combines overlapping bounding boxes from a list until no more merges can be performed.- Parameters:
boxes- The initial list of DeepAcousticsResult objects.minOverlapThreshold- The minimum Intersection over Union (IoU) required to merge two boxes. A value between 0.0 (any overlap) and 1.0. For 5%, use 0.05.- Returns:
- A new list of merged bounding boxes.
-