首先是安装windows下的opencv 教程完全按照官方的tutorial吧 http://docs.opencv.org/doc/tutorials/introduction/windows_install/windows_install.html#windows-installation 然后按照官方的教程在vs2012上运行第一个测试程序 http://docs.opencv.org/doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.html#windows-visual-studio-how-to 我的系统是64位,所以环