Kinect Class |
Namespace: Accord.Video.Kinect
The Kinect type exposes the following members.
Name | Description | |
---|---|---|
DeviceCount |
Number of Kinect devices available in the system.
| |
DeviceID |
ID of the opened Kinect device.
|
Name | Description | |
---|---|---|
Dispose |
Dispose device freeing all associated unmanaged resources.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize |
Object finalizer/destructor makes sure unmanaged resource are freed if user did not call Dispose.
(Overrides ObjectFinalize.) | |
GetAccelerometerValues |
Get accelerometer values for 3 axes.
| |
GetDepthCamera |
Get Kinect's depth camera.
| |
GetDevice |
Get initialized instance of the Kinect device.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetVideoCamera |
Get Kinect's video camera.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SetLedColor |
Set color of Kinect's LED.
| |
SetMotorTilt |
Set motor's tilt value.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
HasMethod |
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.) | |
IsEqual |
Compares two objects for equality, performing an elementwise
comparison if the elements are vectors or matrices.
(Defined by Matrix.) | |
To(Type) | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) | |
ToT | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) |
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:
// 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