Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The matrix is not continuous... got an error when executing face recognition from video

Hi, I am new to OpenCV and I am following the tutorial (http://docs.opencv.org/modules/contrib/doc/facerec/tutorial/facerec_video_recognition.html?) to make a face recognition from the webcamera.

After I used the following command, I got the error

"./Facerec_Video '/root/Documents/Facial_Recgonition/opencv/libfacerec/samples/New/haarcascade_frontalface_default.xml' '/root/Documents/Facial_Recgonition/opencv/libfacerec/samples/New/data.csv' /dev/video0"

Facerec_Video is the executable file and the following three arguments are Haarcascade file, CSV file, and my webcamera.

OpenCV Error: Image step is wrong (The matrix is not continuous, thus its number of rows can not be changed) in reshape, file /build/opencv/src/opencv-2.4.6.1/modules/core/src/matrix.cpp, line 802 terminate called after throwing an instance of 'cv::Exception' what(): /build/opencv/src/opencv-2.4.6.1/modules/core/src/matrix.cpp:802: error: (-13) The matrix is not continuous, thus its number of rows can not be changed in function reshape Aborted (core dumped)

I used the AT&T database and the CSV file and source code copied from the tutorial. Can anyone give me some clues? Thank you.