Note: the "Official Guide" is excerpted from the official website. For details, refer to the installation documentation. If you only want to develop the project, you only need to configure the project by referring to my "configuration. (The machine configuration can be different)
1. Official Guide
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 already des 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 already des 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
Ii. Configuration
1. Environment
Hardware:
CPU: Pentium (r) dual-core CPU e6600 @ 3.06 GHz
Memory: 2 GB
Software
Operating System: Windows 7 flagship edition 32-bit
Development Environment Visual Studio 2010 professional + Kinect for Windows SDK v1.5
2. configuration process
A. In the vs2010 project, add % kinectsdk10_dir % \ Inc to the directory containing the VC ++ directory and add % kinectsdk10_dir % \ Lib \ x86
B. Add a specific library and set additional dependencies in the linker. Fill in kinect10.lib.
C. The header file contains # include <windows. h> # include <nuiapi. h>