Good morning, I have the following code:
var faceImage = new Image<Gray, byte>(new Bitmap(bm));
imagensFace[i] = faceImage.Resize(100, 100, Inter.Cubic);
faceLabels[i] = todasFaces[i].ID;
}
faceRecognizer.Train(imagensFace, faceLabels);
faceRecognizer.Save("C:/Temp");
However when passing in the part that saves the faceRecognizer the following error is pointed out: Emv.CV.Util.CvException: 'OpenCV: File can not be opened for writing!'
Below is the declaration of faceRecognizer:
FaceRecognizer faceRecognizer = new EigenFaceRecognizer(80, double.PositiveInfinity);
If someone can help me, I appreciate it.