I\'m using OpenCV 2.2 with visual studio 2010 on a win 7 64 bit pc.
I\'m able to display pictures and play AVI files through OpenCV as given in the book \"Learning O
Once you create the cv::VideoCapture you should give an integer not a string (since string implies the input is a file).
cv::VideoCapture
To open the default camera, open the stream with
cv::VideoCapture capture(0);
and it will work fine.