配置opencv環境,使用程式設計環境:vc6.0或者vs2013
/每建立乙個將要使用opencv的vc project,都需要給它指定需要的lib。步驟是:
1.1 選單->project->settings,然後將setting for選為all configurations,
1.2 選擇右邊的link標籤,在object/library modules附加上
cxcore.libcv.lib
ml.lib
cvaux.lib
highgui.lib
cvcam.lib
ps:如果你不需要這麼多lib,你可以只新增你需要的lib。
2、vs2013下配置opencv 2413:
2.3、配置opencv環境變數
計算機->(右鍵)屬性->高階系統設定->高階(標籤)->環境變數->(雙擊)path(使用者,系統裡面的path任選其一)->在變數值裡面新增e:\program files\opencv\build\x86\vc9\bin;e:\program files\opencv\build\common\tbb\ia32\vc12」
2.4、配置工程的opencv依賴
1)工具->選項->專案和解決方案->vc++目錄:需要配置「包含檔案」和「庫檔案」兩項。
2)配置「包含檔案」項:新增行
e:\program files\opencv\build\include
e:\program files\opencv\build\include\opencv
e:\program files\opencv\build\include\opencv2
3)配置「庫檔案」項:新增行d:\program files\opencv\build\x86\vc9\lib」即可。
(每次新建工程都要重新配置)
針對debug配置新增以下庫:
opencv_calib3d2413d.lib
opencv_contrib2413d.lib
opencv_core2413d.lib
opencv_features2d2413d.lib
opencv_flann2413d.lib
opencv_gpu2413d.lib
opencv_highgui2413d.lib
opencv_imgproc2413d.lib
opencv_legacy2413d.lib
opencv_ml2413d.lib
opencv_nonfree2413d.lib
opencv_objdetect2413d.lib
opencv_ocl2413d.lib
opencv_photo2413d.lib
opencv_stitching2413d.lib
opencv_superres2413d.lib
opencv_ts2413d.lib
opencv_video2413d.lib
opencv_videostab2413d.lib
如果是release配置(以後再說,只需要新增上面的debug配置就行了現在),則新增:
opencv_calib3d2413.lib
opencv_contrib2413.lib
opencv_features2d2413.lib
opencv_core2413.lib
opencv_flann2413.lib
opencv_gpu2413.lib
opencv_highgui2413.lib
opencv_imgproc2413.lib
opencv_legacy2413.lib
opencv_ml2413.lib
opencv_nonfree2413.lib
opencv_objdetect2413.lib
opencv_ocl2413.lib
opencv_photo2413.lib
opencv_stitching2413.lib
opencv_superres2413.lib
opencv_ts2413.lib
opencv_video2413.lib
opencv_videostab2413.lib
opencv環境配置
第一步 配置環境變數 opencv build x86 vc10 bin 第二步 配置工程的opencv依賴項 專案 選單項 屬性 vc 目錄 需要配置 包含目錄 和 庫目錄 兩項。a 配置 包含目錄 項 新增行 opencv build include b 配置 庫目錄 項 新增行 opencv ...
Open CV 環境配置
將c program files opencv opencv build x64 vc14 bin目錄下面的 opencv world341.dll和opencv world341d.dll 檔案複製到c windows syswow64這個資料夾裡面即可 將c program files open...
Mac CLion配置OpenCV環境
首先用homebrew安裝opencv brew install opencv如果發現有更新就更新 然後在clion專案中的cmakelists.txt中配置如下 cmake minimum required version 3.9 project untitled1 set cmake cxx s...