Hi, I'm trying to modify the code in order to process with my camera.
But I got a segmentation fault (core damped) after compile.
I use the cv::VideoCapture cap(1) to read my camera, then put cv::Mat img and cv::Mat im_gray out of the for loop then cap>>img; inside the loop. Also comment the num2str and sprintf.
But it doesn't work,
Can anyone tell me what else should I modify?
Thanks.