原文:
一. 安装和配置Kinect for Windows SDK v1.8在官方网站下载Kinect for Windows SDK和Developer Toolkit:
KinectSDK-v1.8-Setup.exe (主要提供Kinect的驱动和设备访问接口)
KinectDeveloperToolkit-v1.8.0-Setup.exe (主要提供一些有助于开发的工具,包括Kinect Studio和多种编程语言的开发例程等)
按照默认选项安装完成后,接入Kinect,系统将会自动的搜索驱动进行安装。打开设备管理器查看驱动是否安装成功:
再打开Developer Toolkit Browser v1.8.0 (Kinect for Windows):
Developer Toolkit Browser测试读取深度图像的例子:
Depth Basics Demo 二. 安装OpenCV2.4.9OpenCV主页:opencv.org
下载OpenCV for Windows
安装很简单,不用自己编译。假设安装在E盘 E:\opencv 。
三. VS2013配置打开VS2013,新建project,命名为KinectDepthData。打开VIEW中的Property Manager,打开Debug | Win32下的Microsoft.Cpp.Win32.user:
Property Manager分别配置OpenCV和Kinect的项目属性:
OpenCVInclude 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
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 Linker 四. 测试用Kinect读取深度图像并用OpenCV显示1