10-09-2013, 12:02 PM
Introduction to Microsoft Kinect Sensor Programming
Microsoft Kinect Sensor.ppt (Size: 402.5 KB / Downloads: 55)
What is Kinect Sensor
Full Skeleton Tracking
Gesture Recognition
Intuitive Interactive Interface
Voice Recognition Capabilities
Affordable
Easy to install
Installing Kinect Sensor
Download the 32-bit or 64-bit version of the Kinect for Windows SDK at http://kinectforwindows.org
Visual Studio 2010 (Professional or Express edition)
DirectX
DirectX® SDK - June 2010 or later version
Current runtime for Microsoft DirectX® 9
Kinect SDK Fundamentals
Start New Windows Presentation Foundation Project
Add a reference to:
Mucrosoft.Research.Kinect
Add “Using” statement
using Microsoft.Research.Kinect.Nui;
using Microsoft.Research.Kinect.Audio;
Setting Runtime Options
in the Window_Loaded event, initialize the runtime with the options you want to use. For example, set RuntimeOptions.UseColor to use the RGB camera and Depth Data:
nui.Initialize(RuntimeOptions.UseColor | RuntimeOptions.UseDepth);
The example below sets the runtime to use the color camera, a depth camera, and skeletal tracking:
nui.Initialize(RuntimeOptions.UseColor | RuntimeOptions.UseDepthAndPlayerIndex | RuntimeOptions.UseSkeletalTracking );
Skeleton Tracking
Runtime object:
Runtime nui = new Runtime();
Initialize Runtime:
nui.Initialize(RuntimeOptions.UseSkeletalTracking);
Register Event:
nui.SkeletonFrameReady += new EventHandler<SkeletonFrameReadyEventArgs>(nui_SkeletonFrameReady);
Joint Positions
A Joint position returns X,Y,Z values as explained below
X = Horizontal position measured as the distance, in meters from the Kinect along the X Axis
Y = Vertical position measured as the distance, in meters from the Kinect along the Y Axis
Z = Distance from Kinect measured in meters