The class provides access to Microsoft's Xbox Kinect controller.

Namespace:  AForge.Video.Kinect
Assembly:  AForge.Video.Kinect (in AForge.Video.Kinect.dll) Version: 2.2.4.0 (2.2.4.0)

Syntax

C#
public class Kinect : IDisposable

Remarks

The class allows to manipulate Kinec device by changing its LED color, setting motor's tilt value and accessing its camera. See KinectVideoCamera and KinectDepthCamera classes, which provide access to actual video.

Note:In order to run correctly the class requires freenect.dll library to be put into solution's output folder. This can be found within the AForge.NET framework's distribution in Externals folder.

Sample usage:

CopyC#
// get Kinect device
Kinect kinectDevice = Kinect.GetDevice( 0 );
// change LED color
kinectDevice.LedColor = LedColorOption.Yellow;
// set motor tilt angle to -10 degrees
kinectDevice.SetMotorTilt( -10 );
// get video camera
KinectVideoCamera videoCamera = kinectDevice.GetVideoCamera( );

// see example for video camera also

Inheritance Hierarchy

System..::.Object
  AForge.Video.Kinect..::.Kinect

See Also