海康相机开发(1) SDK安装和开发 - MKT-porter - 博客园

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”路径,目录结构如下:

[![clip_image001[4]](assets/0ddc1abac58da42de4f7fa1e742afcca.png "clip_image001[4]")](https://images2018.cnblogs.com/blog/1411764/201807/1411764-20180727155737366-815537912.png)

1.3 效果展示

建议安装成功后,连接相机,打开MVS客户端,查看相机连接和图像预览的效果,确认环境正常后,再开始基于SDK的二次开发。如下:

[![clip_image003[4]](assets/8dae4930e2a386a0f7fae3b29fb792a9.jpg "clip_image003[4]")](https://images2018.cnblogs.com/blog/1411764/201807/1411764-20180727155738649-665497424.jpg)

opencv系统环境变量path

?

1

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

 注销重启生效

包含目录

  海康

?

1

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

 opencv 

?

1

2

3

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

库目录

海康

?

1

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

opencv

?

1

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

附加依赖项

海康相机

?

1

MvCameraControl.lib

opencv

?

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

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这两个宏。


原网址: 访问
创建于: 2023-09-22 09:48:22
目录: default
标签: 无

请先后发表评论
  • 最新评论
  • 总共0条评论