"FaceRecognizer.Fisherfaces" [closed]
I have tried to follow the tutorial but when i run my code i get an error which says
"OpenCV Error: Unsupported format or combination of formats In the (Fisherfaces method all input samples (training images) must be of equal size! Expected 0 pixels, but was 10304 pixels.) in unknown function, file ...facerec.cpp line 455"
This is thrown on line containing model->train(images, labels);
I'm using this code here.
the error means, that your first training image was empty.
that folder.
Perfect! Thanks. I checked the path I was pulling in the read_csv function and the first path was garbage because of something. still not sure what, but I erased the garbage data from the first path and now all is well and I have passed this line of code.
nice. took a 2nd look, and in fact, e.g, the att database comes with a readme file at top level ;)