detectAsync method

Future<Mat> detectAsync(
  1. Mat image
)

Implementation

Future<Mat> detectAsync(Mat image) async {
  final p = calloc<cvg.Mat>();
  return cvRunAsync0(
    (callback) => cobjdetect.cv_FaceDetectorYN_detect(ref, image.ref, p, callback),
    (c) {
      return c.complete(Mat.fromPointer(p));
    },
  );
}