error executing an opencv example on raspberry
Hi, I'm a beginner with OpenCV library and I'd like to write a program that takes a picture from the webcam. I have already installed the library on my PI (debian wheezy) but I get some errors when I try to execute a program that is in the library examples folder. That's it:
HIGHGUI ERROR: V4L/V4L2: VIDIOC_CROPCAP init done opengl support available VIDIOC_DQBUF: no such device VIDIOC_DQBUF: no such device OpenCV Error: Assertion failed ( buf.data && buf.isContinuous()) in imdecode_, file /root/opencv-2.4.8/modules/highgui/src/loadsave.cpp, line 307 terminate called after throwing an instance of 'cv::Exception' what(): /root/opencv-2.4.8/modules/highgui/src/loadsave.cpp:307: error: (-215) buf.data && buf.isContinuous() in function imdecode_
Thanks in advance