vs2010 opencv2 4 9配置筆記

2021-07-14 15:08:24 字數 1502 閱讀 5199

1.q: waitkey找不到識別符號

s:k大寫

2.q:fatal error lnk1120: 7 個無法解析的外部命令

r:鏈結庫沒有配置正確

s:【專案】-【debug|win32】-【microsoft.cpp.win32.userdirectories】-右鍵(或雙擊)左邊那個-

【通用屬性】-【聯結器】-【輸入】-【附加的依賴項】

新增如下lib名:

opencv_ml249d.lib

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_objdetect249d.lib

opencv_ts249d.lib

opencv_video249d.lib

opencv_nonfree249d.lib

opencv_ocl249d.lib

opencv_photo249d.lib

opencv_stitching249d.lib

opencv_superres249d.lib

opencv_videostab249d.lib

opencv_objdetect249.lib

opencv_ts249.lib

opencv_video249.lib

opencv_nonfree249.lib

opencv_ocl249.lib

opencv_photo249.lib

opencv_stitching249.lib

opencv_superres249.lib

opencv_videostab249.lib

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

在編譯中若遇到其他lib報錯,新增進去。

3.q:出現下列問題:記憶體位置0x0045f3a0c處的cv::exception

s:把放倒工程目錄下,一般都是沒有放對位置

OpenCV2 4 9與VS2010配置遇到的問題

軟體 opencv 2.4.9 vs2010 從以下圖中我們可以看到opencv和 vs需要版本匹配,當安裝後的opencv檢視當前版本opencv2.4.9可以和vs2010 vs2011以及 vs2012匹配。1 在配置專案工程時,附加依賴項怎麼刪除和重新新增 移除 要想刪除依賴附加項主要是能夠...

vs2013 opencv2 4 9 中出現的問題

用vs2010配置opencv2.4中,除錯程式時出現unhandled exception at 0x7c812fd3 in opencvtest.exe microsoft c exception cv exception at memory location 0x0011ed78.的問題,如圖...

VS2010下opencv閾值操作

opencv演算法是值得單獨拿出來學習的,opencv包含很多模組,如calib3d模組 imgproc影象處理模組 ml機器學習模組等等。今天算是乙個開始,學習將opencv中幾種閾值操作改變引數動態顯示 createtrackbar 可參考博主 it1995 我也是跟著博主 it1995在學習 ...