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,
) async {
  final rval = cvRunAsync0<(VecRect, VecF64)>(
      (callback) => cobjdetect.HOGDescriptor_groupRectangles_Async(
            ref,
            rectList.ptr,
            weights.ptr,
            groupThreshold,
            eps,
            callback,
          ), (c) {
    rectList.reattach();
    weights.reattach();
    return c.complete((rectList, weights));
  });
  return rval;
}