dnn_softNMSBoxes
import { dnn_softNMSBoxes } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Performs soft non maximum suppression given boxes and corresponding scores. Reference: https://arxiv.org/abs/1704.04503
See: SoftNMSMethod
dnn_softNMSBoxes(bboxes: RectVector, scores: FloatVector, updated_scores: FloatVector, score_threshold: number, nms_threshold: number, indices: IntVector, top_k: number, sigma: number, method: number): void;4 available overloads
dnn_softNMSBoxes(bboxes: RectVector, scores: FloatVector, updated_scores: FloatVector, score_threshold: number, nms_threshold: number, indices: IntVector): void;dnn_softNMSBoxes(bboxes: RectVector, scores: FloatVector, updated_scores: FloatVector, score_threshold: number, nms_threshold: number, indices: IntVector, top_k: number): void;dnn_softNMSBoxes(bboxes: RectVector, scores: FloatVector, updated_scores: FloatVector, score_threshold: number, nms_threshold: number, indices: IntVector, top_k: number, sigma: number): void;dnn_softNMSBoxes(bboxes: RectVector, scores: FloatVector, updated_scores: FloatVector, score_threshold: number, nms_threshold: number, indices: IntVector, top_k: number, sigma: number, method: number): void;bboxesa set of bounding boxes to apply Soft NMS.
scoresa set of corresponding confidences.
updated_scoresOutput destination, filled by the native operation. a set of corresponding updated confidences.
score_thresholda threshold used to filter boxes by score.
nms_thresholda threshold used in non maximum suppression.
indicesOutput destination, filled by the native operation. the kept indices of bboxes after NMS.
top_kkeep at most
top_kpicked indices.sigmaparameter of Gaussian weighting.
methodGaussian or linear.
These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.