Tag: segmentation fault

Strange behaviour with OpenCV Camera “things”

I am currently working on a project that does some image processing and I have to use a webcam as image source. My choice is OpenCV and Qt (of course).
The new OpenCV version (2.3) just came out when I started my project so I got the source and compiled it.
After looking through the documentation I tried to use the new C++ API and cv::VideoCapture class instead of the C-style CvCapture structure but failed since cv::VideoCapture can’t find my webcam for some reason.

However my old projects that used the webcam still worked I simply kept on using CvCapture.
After a while I got an error when tried to use cv::Mat::operator() for subimage extraction and received strange runtime errors.