本文共 2347 字,大约阅读时间需要 7 分钟。
1.1 安装包获取
从官网下载最新版本的MVS安装包,支持Windows xp、Windows 7、Windows 8、Windows 10的32和64位系统。安装过程默认即可。
官网下载链接:http://www.hikvision.com/cn/download_more_960.html
1.2 安装目录介绍
MVS安装包由四个组件构成,分别是MVS客户端、SDK开发包、驱动、GenICam。安装过程大概1-3分钟。我安装在“D:\Program\MVS”路径,目录结构如下:
1.3 效果展示
建议安装成功后,连接相机,打开MVS客户端,查看相机连接和图像预览的效果,确认环境正常后,再开始基于SDK的二次开发。如下:
opencv系统环境变量path
F:\dongdong\0tool\navidia_cuda_opencv\opencv3.3\build\x64\vc14\bin
注销重启生效
包含目录
海康
C:\Program Files (x86)\MVS\Development\Includes
opencv
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
库目录
海康
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这两个宏。
转载地址:http://dzrav.baihongyu.com/