I am new to OpenCV and trying to capture video from my laptop camera using
VideoCapture cap(0); // open the video camera no. 0
I am following the tutorial capturing-images-videos
I tried VideoCapture cap(0); with different parameters (0,1,2) but its not working for me. Also I have checked device manager my cam is working fine (also with skype, it working). I am able to play video using other constructor of VideoCapture. Iam using Windows 7 (64-bit) and my laptop is HP ProBook 4530s. Also I am using OpenCV OpenCV2.4.5 Any help will be greatly appreciated.