创建基于kinect的c++控制台应用程序
2012-08-06 16:47
387 查看
注意:“官方指导”是我从官网摘录的,具体内容可以参照安装的文档。如果你仅仅是要进行开发,只要参照我的“配置”对工程项目进行简单的设置就可以了。(机器配置可以不同)
一、官方指导
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:
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 adjust camera settings, opening reading data streams.
NuiSkeleton.h - APIs for enabling skeleton tracking, getting skeleton data and for transforming skeleton data for smoother rendering.
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>
一、官方指导
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:
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 adjust camera settings, opening reading data streams.
NuiSkeleton.h - APIs for enabling skeleton tracking, getting skeleton data and for transforming skeleton data for smoother rendering.
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>
相关文章推荐
- 创建基于 Win32 的应用程序 (C++)
- vs2013创建c++控制台应用程序
- Visual Studio 2015专业版创建Win32控制台应用程序,C,C++源文件
- Visual Studio 2015专业版创建Win32控制台应用程序,C,C++源文件
- 基于SharePoint 2010的控制台应用程序常见问题
- Visual C++ 6.0简介与创建控制台应用程序和MFC应用程序
- 【翻译】使用Sencha Touch创建基于Tizen应用程序
- jphone项目设计介绍(一个基于C++的应用程序框架以及软电话和日志服务器应用)
- 使用 Microsoft.NET Frameworks 创建基于 Windows 的应用程序
- c++ 控制台应用程序不显示dos界面
- C#取得控制台应用程序的根目录方法 判断文件夹是否存在,不存在就创建
- Visual C++ .NET 开发环境中为应用程序创建符号文件
- 用emacs创建第一个基于mozilla的xulrunner应用程序。
- 创建ASP.NET Core MVC应用程序(3)-基于Entity Framework Core(Code First)创建MySQL数据库表
- 使用Libcef创建基于浏览器的应用程序(1)
- Qt使用教程之创建一个基于Qt部件的应用程序(三)
- 9_9_5创建一个控制台应用程序项目Traffic,它引用Vehicles.dll
- 创建基于AJAX技术的Scribble应用程序
- 【翻译】使用Sencha Touch创建基于Tizen应用程序
- Visual Studio 2010 ——C#中创建控制台应用程序