windows下配置opencv

我的windows下是使用的一個鏡像安裝的vs2015,然後在vs上編譯工程需要使用opencv時,需要在工程中配置opencv

新建一個C++工程,按照下面的步驟進行配置。

設置opencv的環境變量

「此電腦」右鍵點擊「屬性」-->選擇「高級系統設置」-->選擇「高級」-->選擇「環境變量」-->選擇「Path」-->點擊「編輯」-->添加「bin路徑」

第一步:

左鍵選中「項目」-->右鍵選擇「屬性」-->點擊「VC++目錄」-->點擊「包含目錄」右側的「下三角」-->點擊編輯-->然後添加關於opencv的include,opencv, opencv2目錄

第二步:點擊「庫目錄」右側的下三角-->點擊「編輯」-->點擊「...」選擇相應的lib路徑

第三步:將下面的內容根據圖像的指示覆制到相應的位置。

opencv_calib3d341d.lib
opencv_core341d.lib
opencv_features2d341d.lib
opencv_flann341d.lib
opencv_highgui341d.lib
opencv_imgcodecs341d.lib
opencv_imgproc341d.lib
opencv_ml341d.lib
opencv_objdetect341d.lib
opencv_photo341d.lib
opencv_shape341d.lib
opencv_stitching341d.lib
opencv_superres341d.lib
opencv_video341d.lib
opencv_videoio341d.lib
opencv_videostab341d.lib
opencv_xfeatures2d341d.lib
opencv_xobjdetect341d.lib
opencv_aruco341d.lib
opencv_bgsegm341d.lib
opencv_bioinspired341d.lib
opencv_ccalib341d.lib
opencv_datasets341d.lib
opencv_dnn_objdetect341d.lib
opencv_dnn341d.lib
opencv_dpm341d.lib
opencv_face341d.lib
opencv_fuzzy341d.lib
opencv_hfs341d.lib
opencv_img_hash341d.lib
opencv_line_descriptor341d.lib
opencv_optflow341d.lib
opencv_phase_unwrapping341d.lib
opencv_plot341d.lib
opencv_reg341d.lib
opencv_rgbd341d.lib
opencv_saliency341d.lib
opencv_stereo341d.lib
opencv_structured_light341d.lib
opencv_surface_matching341d.lib
opencv_text341d.lib
opencv_tracking341d.lib
opencv_ximgproc341d.lib
opencv_xphoto341d.lib

相關文章
相關標籤/搜索