Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Face recognition using Eigen faces error Image step is wrong

I am doing face recognition using EigenFace Recognizer to recognize a face from training dataset i.e trained image. I have used the javacv and opencv library to developer android based face recognition using java . when i make a call to int predictedLabel =faceRecognizer.predict(test_resizeimg); i get error

OpenCV Error: Image step is wrong (The matrix is not continuous, thus its number of rows can not be changed) in cv::Mat cv::Mat::reshape(int, int) const, file /home/saudet/android/OpenCV-2.4.3/modules/core/src/matrix.cpp, line 801

can anybody advice me how to resolve this issue.