Ask Your Question

Babbling's profile - activity

2018-04-03 13:14:32 -0600 received badge  Notable Question (source)
2016-06-06 15:53:24 -0600 received badge  Popular Question (source)
2013-12-12 20:16:50 -0600 received badge  Student (source)
2013-07-25 04:20:30 -0600 asked a question 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.