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 = calloc<cobjdetect.VecPoint>();
  final searchLocations = calloc<cobjdetect.VecPoint>();
  cvRun(
    () => cobjdetect.HOGDescriptor_Detect2(
      ref,
      img.ref,
      foundLocations,
      hitThreshold,
      winStride.cvd.ref,
      padding.cvd.ref,
      searchLocations,
    ),
  );
  return (VecPoint.fromPointer(foundLocations), VecPoint.fromPointer(searchLocations));
}