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