detect method

(VecPoint, VecPoint) detect(
  1. InputArray img, {
  2. double hitThreshold = 0,
  3. (int, int) winStride = (0, 0),
  4. (int, int) padding = (0, 0),
})

Implementation

(VecPoint foundLocations, VecPoint searchLocations) detect(
  InputArray img, {
  double hitThreshold = 0,
  (int, int) winStride = (0, 0),
  (int, int) padding = (0, 0),
}) {
  final foundLocations = VecPoint();
  final searchLocations = VecPoint();
  cvRun(
    () => cobjdetect.cv_HOGDescriptor_detect2(
      ref,
      img.ref,
      foundLocations.ptr,
      hitThreshold,
      winStride.cvd.ref,
      padding.cvd.ref,
      searchLocations.ptr,
      ffi.nullptr,
    ),
  );
  return (foundLocations, searchLocations);
}