detectAsync method

Future<Mat> detectAsync(
  1. Mat image
)

Implementation

Future<Mat> detectAsync(Mat image) async {
  final ret = Mat.empty();
  return cvRunAsync0(
    (callback) => cobjdetect.cv_FaceDetectorYN_detect(ref, image.ref, ret.ptr, callback),
    (c) {
      return c.complete(ret);
    },
  );
}