記憶力越來越差了,看來寫點東西記錄下來是很有必要的
關於安裝:
隨便安,記得最後opencv資料夾在**就好了
關於配置:
1.計算機--屬性--環境變數---系統變數中的path---在後面新增(以我的計算機為例)d:\opencv\build\x86\vc12\bin;d:\opencv\build\x64\vc12\bin;
2.開啟vs2013---檢視---其他視窗---屬性管理器----debug右鍵----新增新(add)---- 配置vc++目錄----包含目錄---新增d:\opencv\build\include和d:\opencv\build\include\opencv和d:\opencv\build\include\opencv2----庫目錄----新增d:\opencv\build\x86\vc12\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_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_ml249d.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
4.屬性管理器中release也如debug配置一遍(附加依賴項要不要配置待定)
5.應該就好了
6.我的檢測程式是
#include
#include
#include
using namespace cv;
int main()
以下是我成功之後的
**並茂請移步:
重要,成功的關鍵233333)
OPENCV學習筆記 1
剛上研一,本身想對嵌入式進行一番學習,結果實習的時候用opencv搞影象識別,有點讓人失望。不過畢竟是ai的電腦視覺方面的東西,所以也就報有很大熱情學的,業餘還得鞏固基礎c c 的書 等把c primer再看一遍後進軍sdk了,得等多久到mfc啊 csdn開了部落格,寫了些,後來才發現有學生大本營,...
OpenCV 學習筆記1
將opencv和vs配置成功後,開始編寫程式。值得說明的是,在opencv中,有以下兩種形式的函式呼叫,一種定義在highgui c.h中,例如 cvnamedwindow test cv window autosize 這種形式的函式呼叫要使用cv作為函式的限定 一種定義在highgui.hpp中...
opencv學習筆記 1
cvloadimage iplimage cvloadimage const char filename,int flags cv load image color filename 要被讀入的檔案的檔名 包括字尾 flags 指定讀入影象的顏色和深度 指定的顏色可以將輸入的轉為3通道 cv loa...