I\'ve installed OpenCV 2.2 and now I can\'t get webcam capture to work. It worked ok in 2.1. OpenCV detects a webcam, doesn\'t report any errors or warnings, but each frame
I really don't know anything about OpenCV, but Isn't the problem on the following line ?
cvtColor(frame, edges, CV_BGR2GRAY);
Seems like you are intentionally converting a B-G-R color space into a Grayscale space.
Shouldn't it be something like:
cvtColor(frame, edges, CV_BGR2RGB);