detect2 method
Performs object detection without a multi-scale window.
https://docs.opencv.org/4.x/d5/d33/structcv_1_1HOGDescriptor.html#a309829908ffaf4645755729d7aa90627
Implementation
(VecPoint foundLocations, VecF64 weights, VecPoint searchLocations) detect2(
InputArray img, {
double hitThreshold = 0,
(int, int) winStride = (0, 0),
(int, int) padding = (0, 0),
}) {
final foundLocations = calloc<cobjdetect.VecPoint>();
final searchLocations = calloc<cobjdetect.VecPoint>();
final weights = calloc<cobjdetect.VecF64>();
cvRun(
() => cobjdetect.HOGDescriptor_Detect(
ref,
img.ref,
foundLocations,
weights,
hitThreshold,
winStride.cvd.ref,
padding.cvd.ref,
searchLocations,
),
);
return (
VecPoint.fromPointer(foundLocations),
VecF64.fromPointer(weights),
VecPoint.fromPointer(searchLocations),
);
}