reading webcam (beginner problem)

asked 2014-03-28 12:48:42 -0500

freedom gravatar image

updated 2014-03-28 12:50:55 -0500

hi

My operating system is asus laptop core i5,64bit,win8. and I use... OpenCV-2.2.0-win32-vs2010.....in.....Microsoft Visual Studio c++ 2010 express

and I use my laptops own webcam.

I'm completely beginner in opencv.I start learning opencv with some prepared codes from lirtex.com about solid color ball motion tracking. ........I had done all necessary thing such as defining property sheet ....and so on. and then start to debug my program with F10 key (line by line step over debuging).

I got some warnings at the very beginig:(but I think they are not so important)they were all like below..............................................................................................

'Tracker10.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Symbols loaded (source information stripped). 'Tracker10.exe': Loaded 'C:\Program Files (x86)\WS-Booster\Assistant.dll', Binary was not built with debug information. 'Tracker10.exe': Unloaded 'C:\Program Files (x86)\WS-Booster\Assistant.dll'

or

'Tracker10.exe': Loaded 'C:\OpenCV2.2\bin\opencv_highgui220d.dll', Cannot find or open the PDB file"

.....................................................................................................

In the next step I got some thing like this......in line 11 (cv::VideoCapture capWebcam(0);)

image description

"".....The thread 'Win32 Thread' (0x1d74) has exited with code 0 (0x0)...." in the middle of other warnings.


When I continue debugging I got some likely error in line 24 (cv::namedWindow("Original");)

image description

"".....The thread 'Win32 Thread' (0x1684) has exited with code 0 (0x0)....."

..................................................................................................

and at last after stop debugging I got.....(The program '[4908] Tracker10.exe: Native' has exited with code 0 (0x0).)

yo can get the main program from this link

(http://www.18f4550.com/OpenCV_and_Emgu_CV/OpenCV_tut_2/Tracker10.zip)

I think the problem is in camera reding....But I dont know how to fix it.

please some one help me.

edit retag flag offensive close merge delete