1. 程式人生 > >OpenCV環境及工程配置

OpenCV環境及工程配置

1.環境變數

設定使用者變數
計算機->屬性->高階系統設定->環境變數->使用者變數,
在Path中新增變數值,opencv動態庫dll放置路徑,注意是x86還是64位的
例如:
D:\opencv\build\x86\vc10\bin\

2.工程配置

新建工程 檔案 專案 屬性 VC++目錄

包含目錄

配置opencv標頭檔案目錄
例如
D:\opencv\build\include
D:\opencv\build\include\opencv
D:\opencv\build\include\opencv2

庫目錄

配置opencv lib放置的路徑
例如
D:\opencv\build\x64\vc10\lib

連結器 輸入 附加依賴項

debug

opencv_calib3d249d.lib
opencv_contrib249d.lib
opencv_core249d.lib
opencv_features2d249d.lib
opencv_flann249d.lib
opencv_gpu249d.lib
opencv_highgui249d.lib
opencv_imgproc249d.lib
opencv_legacy249d.lib
opencv_ml249d.lib
opencv_nonfree249d.lib
opencv_objdetect249d.lib
opencv_ocl249d.lib
opencv_photo249d.lib
opencv_stitching249d.lib
opencv_superres249d.lib
opencv_ts249d.lib
opencv_video249d.lib
opencv_videostab249d.lib

**

release

**
opencv_calib3d249.lib
opencv_contrib249.lib
opencv_core249.lib
opencv_features2d249.lib
opencv_flann249.lib
opencv_gpu249.lib
opencv_highgui249.lib
opencv_imgproc249.lib
opencv_legacy249.lib
opencv_ml249.lib
opencv_nonfree249.lib
opencv_objdetect249.lib
opencv_ocl249.lib
opencv_photo249.lib
opencv_stitching249.lib
opencv_superres249.lib
opencv_ts249.lib
opencv_video249.lib
opencv_videostab249.lib