dnn_NMSBoxesBatched
import { dnn_NMSBoxesBatched } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Performs batched non maximum suppression on given boxes and corresponding scores across different classes.
dnn_NMSBoxesBatched(bboxes: Rect2dVector, scores: FloatVector, class_ids: IntVector, score_threshold: number, nms_threshold: number, indices: IntVector, eta: number, top_k: number): void;3 available overloads
dnn_NMSBoxesBatched(bboxes: Rect2dVector, scores: FloatVector, class_ids: IntVector, score_threshold: number, nms_threshold: number, indices: IntVector): void;dnn_NMSBoxesBatched(bboxes: Rect2dVector, scores: FloatVector, class_ids: IntVector, score_threshold: number, nms_threshold: number, indices: IntVector, eta: number): void;dnn_NMSBoxesBatched(bboxes: Rect2dVector, scores: FloatVector, class_ids: IntVector, score_threshold: number, nms_threshold: number, indices: IntVector, eta: number, top_k: number): void;bboxesa set of bounding boxes to apply NMS.
scoresa set of corresponding confidences.
class_idsa set of corresponding class ids. Ids are integer and usually start from 0.
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.
etaa coefficient in adaptive threshold formula:
nms\_threshold_{i+1}=eta\cdot nms\_threshold_i.top_kif
>0, keep at mosttop_kpicked indices.
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.