detectAsync method

Future<Mat> detectAsync(
  1. Mat image
)

Implementation

Future<Mat> detectAsync(Mat image) async {
  final rval = cvRunAsync<Mat>(
      (callback) => cobjdetect.FaceDetectorYN_Detect_Async(ref, image.ref, callback), (c, p) {
    return c.complete(Mat.fromPointer(p.cast<cobjdetect.Mat>()));
  });
  return rval;
}