Kinect开发环境配置:Kinect for Windows SDK + OpenCV2.4.9 + VS2013 + Win8(x86)

原文:

一. 安装和配置Kinect for Windows SDK v1.8

在官方网站下载Kinect for Windows SDKDeveloper Toolkit

KinectSDK-v1.8-Setup.exe (主要提供Kinect的驱动和设备访问接口)

KinectDeveloperToolkit-v1.8.0-Setup.exe (主要提供一些有助于开发的工具,包括Kinect Studio和多种编程语言的开发例程等)

按照默认选项安装完成后,接入Kinect,系统将会自动的搜索驱动进行安装。打开设备管理器查看驱动是否安装成功:

Kinect Drivers

Kinect Drivers

再打开Developer Toolkit Browser v1.8.0 (Kinect for Windows):

Developer Toolkit Browser

Developer Toolkit Browser

测试读取深度图像的例子:

Depth Basics Demo

Depth Basics Demo

二. 安装OpenCV2.4.9

OpenCV主页:opencv.org

下载OpenCV for Windows

安装很简单,不用自己编译。假设安装在E盘 E:\opencv 。

三. VS2013配置

打开VS2013,新建project,命名为KinectDepthData。打开VIEW中的Property Manager,打开Debug | Win32下的Microsoft.Cpp.Win32.user:

Property Manager

Property Manager

分别配置OpenCV和Kinect的项目属性:

OpenCV

Include files加入E:\opencv\build\include;

Library files加入E:\opencv\build\x86\vc10\lib;

在Linker的Input中,添加Additional Dependencies(根据需要添加):

opencv_core249d.lib
opencv_highgui249d.lib
opencv_video249d.lib
opencv_imgproc249d.lib
opencv_features2d249d.lib
opencv_nonfree249d.lib
opencv_legacy249d.lib
opencv_calib3d249d.lib

Kinect

Include files加入C:\Program Files\Microsoft SDKs\Kinect\v1.8\inc;

Library files加入C:\Program Files\Microsoft SDKs\Kinect\v1.8\lib\x86;

在Linker的Input中,添加Additional Dependencies:

Kinect10.lib

VC++ Directories

VC++ Directories

Linker

Linker

四. 测试用Kinect读取深度图像并用OpenCV显示

1

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zzjyxs.html