Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

"FaceRecognizer.Fisherfaces"

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"<="" p="">

This is thrown on line containing model->train(images, labels);

I'm using this code here.

click to hide/show revision 2
fixed incorrect formatting

"FaceRecognizer.Fisherfaces"

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"<="" p=""> 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.

click to hide/show revision 3
retagged

updated 2013-09-19 03:17:01 -0600

berak gravatar image

"FaceRecognizer.Fisherfaces"

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.