海康相機開發(1) SDK安裝和開發

 

 

1.1 安裝包獲取

從官網下載最新版本的MVS安裝包,支持Windows xp、Windows 七、Windows 八、Windows 10的32和64位系統。安裝過程默認便可。html

官網下載連接:http://www.hikvision.com/cn/download_more_960.htmlapp

 

1.2 安裝目錄介紹

MVS安裝包由四個組件構成,分別是MVS客戶端、SDK開發包、驅動、GenICam。安裝過程大概1-3分鐘。我安裝在「D:\Program\MVS」路徑,目錄結構以下:ide

clip_image001[4]

1.3 效果展現

建議安裝成功後,鏈接相機,打開MVS客戶端,查看相機鏈接和圖像預覽的效果,確認環境正常後,再開始基於SDK的二次開發。以下:ui

clip_image003[4]

opencv系統環境變量pathspa

 

F:\dongdong\0tool\navidia_cuda_opencv\opencv3.3\build\x64\vc14\bin

 註銷重啓生效3d

 

包含目錄code

  海康htm

C:\Program Files (x86)\MVS\Development\Includes 

 opencv blog

F:\dongdong\0tool\navidia_cuda_opencv\opencv3.4.1\include
F:\dongdong\0tool\navidia_cuda_opencv\opencv3.4.1\include\opencv
F:\dongdong\0tool\navidia_cuda_opencv\opencv3.4.1\include\opencv2

  

  

  

 

庫目錄ip

海康

C:\Program Files (x86)\MVS\Development\Libraries\win64

  

  

opencv

F:\dongdong\0tool\navidia_cuda_opencv\opencv3.4.1\x64\vc14\lib

  

  

附加依賴項

海康相機

MvCameraControl.lib

  

opencv

opencv_aruco341.lib
opencv_bgsegm341.lib
opencv_bioinspired341.lib
opencv_calib3d341.lib
opencv_ccalib341.lib
opencv_core341.lib
opencv_cudaarithm341.lib
opencv_cudabgsegm341.lib
opencv_cudacodec341.lib
opencv_cudafeatures2d341.lib
opencv_cudafilters341.lib
opencv_cudaimgproc341.lib
opencv_cudalegacy341.lib
opencv_cudaobjdetect341.lib
opencv_cudaoptflow341.lib
opencv_cudastereo341.lib
opencv_cudawarping341.lib
opencv_cudev341.lib
opencv_datasets341.lib
opencv_dnn341.lib
opencv_dnn_objdetect341.lib
opencv_dpm341.lib
opencv_face341.lib
opencv_features2d341.lib
opencv_flann341.lib
opencv_fuzzy341.lib
opencv_hfs341.lib
opencv_highgui341.lib
opencv_imgcodecs341.lib
opencv_imgproc341.lib
opencv_img_hash341.lib
opencv_line_descriptor341.lib
opencv_ml341.lib
opencv_objdetect341.lib
opencv_optflow341.lib
opencv_phase_unwrapping341.lib
opencv_photo341.lib
opencv_plot341.lib
opencv_reg341.lib
opencv_rgbd341.lib
opencv_saliency341.lib
opencv_shape341.lib
opencv_stereo341.lib
opencv_stitching341.lib
opencv_structured_light341.lib
opencv_superres341.lib
opencv_surface_matching341.lib
opencv_text341.lib
opencv_tracking341.lib
opencv_video341.lib
opencv_videoio341.lib
opencv_videostab341.lib
opencv_xfeatures2d341.lib
opencv_ximgproc341.lib
opencv_xobjdetect341.lib
opencv_xphoto341.lib

  

SDK開發代碼

 

 

如何半永久型配置

屬性管理器添加一個新表

 

在x64下面

 

 

 

保存這個表

 

按照正常步驟配置完

 

別的工程打開的時候

添加現有的屬性表

 

 遇到一個報錯

 

方法三:幹粹在工程屬性中設置(推薦)。

在工程屬性中設置的方法以下:

 

對於VS系列的版本:打開項目----項目屬性---配置屬性----C/C++ ----預處理器----預處理定義,添加_CRT_SECURE_NO_DEPRECATE和_SCL_SECURE_NO_DEPRECATE這兩個宏。

相關文章
相關標籤/搜索