Visual Studio 2010 +Opencv2.3下的配置關鍵步驟 Opencv下載OpenCV for Windows,superpack 版本的地址:http://www.opencv.org.cn/download/OpenCV-2.3.0-win-superpack.exe以下內容都是build資料夾裡的內容一、設定環境變數:我的電腦--->右鍵--->屬性--->高階--->環境變數--->在使用者變數裡,新建path和OPENCV兩個項步驟1:在path中新增I:\Program Files\OpenCV2.3\build\x86\vc10\bin,就是新增dll檔案步驟2:新增OPENCV的環境變數I:\Program Files\OpenCV2.3\build二、開啟一個Opencv的工程,點選單目錄的“檢視”--->屬性管理器--->雙擊專案名稱步驟3:在配置屬性--->VC++目錄--->包含目錄檔案中新增I:\Program Files\OpenCV2.3\build\includeI:\Program Files\OpenCV2.3\build\include\opencvI:\Program Files\OpenCV2.3\build\include\opencv2 步驟4::在配置屬性--->VC++目錄--->庫目錄中新增I:\Program Files\OpenCV2.3\build\x86\vc10\lib 步驟5 新增lib庫檔案, 在配置debug裡--->專案屬性--->連結器--->輸入--->附加依賴庫 里加上 opencv_core230d.libopencv_highgui230d.libopencv_video230d.libopencv_ml230d.libopencv_legacy230d.libopencv_imgproc230d.lib 步驟6:在配置release裡--->專案屬性--->連結器--->輸入--->附加依賴庫 里加上opencv_core230.libopencv_highgui230.libopencv_video230.libopencv_ml230.libopencv_legacy230.libopencv_imgproc230.lib
Visual Studio 2010 +Opencv2.3下的配置關鍵步驟 Opencv下載OpenCV for Windows,superpack 版本的地址:http://www.opencv.org.cn/download/OpenCV-2.3.0-win-superpack.exe以下內容都是build資料夾裡的內容一、設定環境變數:我的電腦--->右鍵--->屬性--->高階--->環境變數--->在使用者變數裡,新建path和OPENCV兩個項步驟1:在path中新增I:\Program Files\OpenCV2.3\build\x86\vc10\bin,就是新增dll檔案步驟2:新增OPENCV的環境變數I:\Program Files\OpenCV2.3\build二、開啟一個Opencv的工程,點選單目錄的“檢視”--->屬性管理器--->雙擊專案名稱步驟3:在配置屬性--->VC++目錄--->包含目錄檔案中新增I:\Program Files\OpenCV2.3\build\includeI:\Program Files\OpenCV2.3\build\include\opencvI:\Program Files\OpenCV2.3\build\include\opencv2 步驟4::在配置屬性--->VC++目錄--->庫目錄中新增I:\Program Files\OpenCV2.3\build\x86\vc10\lib 步驟5 新增lib庫檔案, 在配置debug裡--->專案屬性--->連結器--->輸入--->附加依賴庫 里加上 opencv_core230d.libopencv_highgui230d.libopencv_video230d.libopencv_ml230d.libopencv_legacy230d.libopencv_imgproc230d.lib 步驟6:在配置release裡--->專案屬性--->連結器--->輸入--->附加依賴庫 里加上opencv_core230.libopencv_highgui230.libopencv_video230.libopencv_ml230.libopencv_legacy230.libopencv_imgproc230.lib