groupRectanglesAsync method

Future<(VecRect, VecF64)> groupRectanglesAsync(
  1. VecRect rectList,
  2. VecF64 weights,
  3. int groupThreshold,
  4. double eps,
)

Implementation

Future<(VecRect rectList, VecF64 weights)> groupRectanglesAsync(
  VecRect rectList,
  VecF64 weights,
  int groupThreshold,
  double eps,
) {
  return cvRunAsync0(
    (callback) => cobjdetect.cv_HOGDescriptor_groupRectangles(
      ref,
      rectList.ptr,
      weights.ptr,
      groupThreshold,
      eps,
      callback,
    ),
    (c) {
      rectList.reattach();
      weights.reattach();
      return c.complete((rectList, weights));
    },
  );
}