featureAsync method

Future<Mat> featureAsync(
  1. Mat alignedImg, {
  2. bool clone = false,
})

Implementation

Future<Mat> featureAsync(Mat alignedImg, {bool clone = false}) async {
  final rval = cvRunAsync<Mat>(
      (callback) => cffi.FaceRecognizerSF_Feature_Async(
            ref,
            alignedImg.ref,
            clone,
            callback,
          ), (c, p) {
    return c.complete(Mat.fromPointer(p.cast<cvg.Mat>()));
  });
  return rval;
}