我使用本教程中的代码中的代码在笔记本电脑上进行相机校准。
这是链接http://docs.opencv.org/doc/tutorials/calib3d/camera_calibration/camera_calibration.html#source-code
它运行但发出警告:
'ConsoleApplication1.exe': Loaded 'C:UsersjayDocumentsVisual Studio 2010ProjectsConsoleApplication1DebugConsoleApplication1.exe', Symbols loaded.
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32ntdll.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32kernel32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32KernelBase.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:opencvbuildx86vc11binopencv_core248.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32msvcp110.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32msvcr110.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:opencvbuildx86vc11binopencv_highgui248.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32user32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32gdi32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32lpk.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32usp10.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32msvcrt.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32ole32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32rpcrt4.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32oleaut32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32advapi32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32sechost.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:Windowswinsxsx86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.18201_none_ec80f00e8593ece5comctl32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32msvfw32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32winmm.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32shell32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32shlwapi.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32avifil32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32msacm32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32avicap32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32version.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32msvcp100d.dll', Symbols loaded.
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32msvcr100d.dll', Symbols loaded.
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32imm32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32msctf.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32cryptbase.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32uxtheme.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32clbcatq.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32devenum.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32setupapi.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32cfgmgr32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32devobj.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32ntmarta.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32Wldap32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32wintrust.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32crypt32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32msasn1.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32msdmo.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32qcap.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32quartz.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32dwmapi.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32ksproxy.ax', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32ksuser.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32d3d9.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32d3d8thk.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32vidcap.ax', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32Kswdmcap.ax', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32mfc42.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32odbc32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32odbcint.dll', Binary was not built with debug information.
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32qedit.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32comdlg32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:Windowswinsxsx86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.18120_none_72d2e82386681b36GdiPlus.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32ddraw.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32dciman32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32igdumd32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32igddxva32.dll', Cannot find or open the PDB file
Dll Loaded :-)
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32igdvidproc32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32igdaux32.dll', Binary was not built with debug information.
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32d3dim700.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Unloaded 'C:WindowsSystem32igddxva32.dll'
'ConsoleApplication1.exe': Unloaded 'C:WindowsSystem32igdvidproc32.dll'
'ConsoleApplication1.exe': Unloaded 'C:WindowsSystem32igdaux32.dll'
'ConsoleApplication1.exe': Unloaded 'C:WindowsSystem32igdumd32.dll'
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32igdumd32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32igddxva32.dll', Cannot find or open the PDB file
Dll Loaded :-)
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32igdvidproc32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32igdaux32.dll', Binary was not built with debug information.
'ConsoleApplication1.exe': Unloaded 'C:WindowsSystem32igddxva32.dll'
'ConsoleApplication1.exe': Unloaded 'C:WindowsSystem32igdvidproc32.dll'
'ConsoleApplication1.exe': Unloaded 'C:WindowsSystem32igdaux32.dll'
'ConsoleApplication1.exe': Unloaded 'C:WindowsSystem32igdumd32.dll'
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32msyuv.dll', Cannot find or open the PDB file
The thread 'Win32 Thread' (0x17bc) has exited with code 0 (0x0).
'ConsoleApplication1.exe': Unloaded 'C:WindowsSystem32msyuv.dll'
The thread 'Win32 Thread' (0xd4) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1594) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1390) has exited with code 0 (0x0).
The program '[5996] ConsoleApplication1.exe: Native' has exited with code 0 (0x0).
我的问题是如何使用笔记本电脑的摄像机实时输入我的图像,或者我必须录制视频或拍摄方格板的快照并将其放入XML文件中?
从我所看到的,您使用imread()
从硬盘驱动器中加载已经保存的图像。换句话说,拍摄快照并与它们合作。