alignCropAsync method

Future<Mat> alignCropAsync(
  1. Mat srcImg,
  2. Mat faceBox
)

Implementation

Future<Mat> alignCropAsync(Mat srcImg, Mat faceBox) async {
  final rval = cvRunAsync<Mat>(
      (callback) => cffi.FaceRecognizerSF_AlignCrop_Async(
            ref,
            srcImg.ref,
            faceBox.ref,
            callback,
          ), (c, p) {
    return c.complete(Mat.fromPointer(p.cast<cvg.Mat>()));
  });
  return rval;
}