alignCrop method
Aligns detected face with the source input image and crops it.
srcImg input image
faceBox the detected face result from the input image
Implementation
Mat alignCrop(Mat srcImg, Mat faceBox) {
final ret = Mat.empty();
cvRun(() => cobjdetect.cv_FaceRecognizerSF_alignCrop(ref, srcImg.ref, faceBox.ref, ret.ptr, ffi.nullptr));
return ret;
}