detect method
Detect objects on image using WaldBoost detector.
img
Input image for detection
return:
bboxes Bounding boxes coordinates output vector
confidences Confidence values for bounding boxes output vector
Implementation
(VecRect bboxes, VecF64 confidences) detect(Mat img) {
final bboxesPtr = calloc<cvg.VecRect>();
final confidencesPtr = calloc<cvg.VecF64>();
cvRun(() => ccontrib.cv_xobjdetect_WBDetector_detect(ref, img.ref, bboxesPtr, confidencesPtr));
return (VecRect.fromPointer(bboxesPtr), VecF64.fromPointer(confidencesPtr));
}