Kinect for windows sdk

一、官方指导

To Create an Unmanaged Application

follow these steps for implementing an unmanaged application.

1. include <NuiApi.h> in your source code

2. for standard definitions, include <windows.h> in your source code

3. To use the NUI API, include NuiApi.h, which is in %KINECTSDK10_DIR%\inc. NuiApi.h includes NuiCamera.h and NuiSkeleton.h also.

4. To use the Kinect Audio API, include NuiSensor.h, which is in %KINECTSDK10_DIR%\inc.

5. Link to Kinect10.lib, which is in %KINECTSDK10_DIR%\lib\x86 (for 32-bit apps) or %KINECTSDK10_DIR%\lib\amd64 (for 64-bit apps).

6. If you are using played index information, specify both NUI_INITIALIZE_FLAG_USES_DEPTH_AND_PLAYER_INDEX and NUI_INITIALIZE_FLAG_USES_SKELETON in the dwFlags parameter to NuiInitialize.

7. The C++ header files are installed in the path contained in the environment variable: KINECTSDK10_DIR, and include the following files:

  1. NuiApi.h - Aggregates all NUI API headers and defines basic initialization and access functions. Use these functions to enumerate devices and access multiple devices. This is the main header file to include in your C++ project; this file includes NuiImageCamera.h and NuiSkeleton.h.
  2. NuiImageCamera.h - APIs for image and camera services for adjust camera settings, opening reading data streams.
  3. NuiSkeleton.h - APIs for enabling skeleton tracking, getting skeleton data and for transforming skeleton data for smoother rendering.
  4. NuiSensor.h - Audio APIs including the ISoundSourceLocalizer interface which supports beamforming and source localization

二、配置

1.环境

硬件:
 CPU : Pentium(R)Dual-Core CPU E6600 @ 3.06GHz
 内存:2G

软件
 操作系统:Windows 7 旗舰版 32位

 开发环境visual studio 2010 professional + Kinect for Windows SDK v1.5

2. 配置过程

 a. 在VS2010项目中,设置VC++目录 包含目录中加入 %KINECTSDK10_DIR%\inc 库目录中加入%KINECTSDK10_DIR%\lib\x86

 b. 添加特定库 在链接器中设置附加依赖项,填入kinect10.lib

 c. 头文件包含 #include <Windows.h> #include<NuiApi.h>

posted on   lydstory  阅读(24)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2022-06-28 websDone
2022-06-28 openwrt 单个包编译必须clean
2022-06-28 goahead websWrite
2022-06-28 Compile problem:recipe for target ‘world’ failed
2022-06-28 package/feeds/zexin/goahead/compile
2022-06-28 /usr/bin/goahead --home /www
2022-06-28 uboot 进去 系统re

导航

< 2025年3月 >
23 24 25 26 27 28 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 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示