kinect c++

To Create an Unmanaged Application

Follow these steps to implement an unmanaged application.

To implement a C++ application

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

                    #include <NuiApi.h>
  2. For standard definitions, include windows.h and ole2.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 player 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:

  • 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.

  • NuiImageCamera.h - APIs for image and camera services for adjusting camera settings and opening reading data streams.

  • NuiSkeleton.h - APIs to enable skeleton tracking, get skeleton data, and transform skeleton data for smoother rendering.

  • NuiSensor.h - Audio APIs including the ISoundSourceLocalizer interface, which supports beamforming and source localization.



转载于:https://my.oschina.net/gujianhan/blog/194707

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值