Program execution switches automatically off when using video capture.
I am using OpenCV 2.4.6 with Visual Studio 2010. I have a problem in video capturing.
The program has no errors and no warnings when building the solution. When I start debugging the program, it starts executing, switches camera on and then automatically off, and finally closes down command prompt. I am not getting any results back. But image processing and other program execution is ok.
Can anyone help me about it?