opencv在visual studio中配置

2021-06-26 12:39:25 字數 1775 閱讀 7261

f:\program files\opencv2.4.4\opencv\build\include

f:\program files\opencv2.4.4\opencv\build\include\opencv

f:\program files\opencv2.4.4\opencv\build\include\opencv2

f:\program files\opencv2.4.4\opencv\build\x86\vc10\lib

_crt_secure_no_warnings

4. 在工程屬性裡面,vc++directories中修改include 和 library directories,路徑分別為

***\opencv2.4.4\build\include;

***\opencv2.4.4\build\include\opencv;

***\opencv2.4.4\build\include\opencv2;

$(includepath)

以及***\opencv2.4.4\build\x64\vc11\lib;

$(librarypath)

這裡lib路徑中關於x64和vc11的選擇和上面是一樣的

圖1:以上debug和release一樣

不一樣的是:

debug下,修改linker->input裡面的附加依賴項為:

opencv_calib3d244d.lib

opencv_contrib244d.lib

opencv_core244d.lib

opencv_features2d244d.lib

opencv_flann244d.lib

opencv_gpu244d.lib

opencv_haartraining_engined.lib

opencv_highgui244d.lib

opencv_imgproc244d.lib

opencv_legacy244d.lib

opencv_ml244d.lib

opencv_nonfree244d.lib

opencv_objdetect244d.lib

opencv_photo244d.lib

opencv_stitching244d.lib

opencv_ts244d.lib

opencv_video244d.lib

opencv_videostab244d.lib

release下,修改linker->input裡面的附加依賴項為:

opencv_calib3d244.lib

opencv_contrib244.lib

opencv_core244.lib

opencv_features2d244.lib

opencv_flann244.lib

opencv_gpu244.lib

opencv_highgui244.lib

opencv_imgproc244.lib

opencv_legacy244.lib

opencv_ml244.lib

opencv_nonfree244.lib

opencv_objdetect244.lib

opencv_photo244.lib

opencv_stitching244.lib

opencv_ts244.lib

opencv_video244.lib

opencv_videostab244.lib

在MFC下執行OpenCV

原來一直都想在mfc下執行opencv,感覺這樣可以結合兩者的特點,一種霸氣的感覺。有木有。先都沒有勇氣去實現,今天花了三個小時,終於搞出來了。主要是opencv2.3不支援cvvimage,而自己感覺opencv論壇中沒有說很仔細,至少對我這個菜鳥是這樣的。下面是論壇的連線 在這裡說一點,其實就是...

ubuntu下opencv在python中的配置

因為之前在安裝caffe的時候裝過opencv,那次是用cmake編譯安裝的,當時應該是沒設定makelist中python選項,最近在想在python中呼叫cv2,結果發現opencv的編譯包中沒有cv2.pyd,python中import cv2找不到相應庫。然後我又去已安裝的python第三方...

在pycharm中安裝opencv

這裡會有乙個坑,注意選擇跟自己python相匹配的版本 檢視本機python的版本匹配哪些檔案 再輸入以下語句 import pip.internal print pip.internal.pep425tags.get supported 查詢得到 安裝opencv pip install open...