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 p = calloc<cobjdetect.Mat>();
cvRun(() => cobjdetect.FaceRecognizerSF_AlignCrop(ref, srcImg.ref, faceBox.ref, p));
return Mat.fromPointer(p);
}