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) => cobjdetect.FaceRecognizerSF_Feature_Async(
            ref,
            alignedImg.ref,
            clone,
            callback,
          ), (c, p) {
    return c.complete(Mat.fromPointer(p.cast<cobjdetect.Mat>()));
  });
  return rval;
}