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