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