Click or drag to resize
Accord.NET (logo)

KinectGetDevice Method

Get initialized instance of the Kinect device.

Namespace:  Accord.Video.Kinect
Assembly:  Accord.Video.Kinect (in Accord.Video.Kinect.dll) Version: 3.8.0
Syntax
public static Kinect GetDevice(
	int deviceID
)
Request Example View Source

Parameters

deviceID
Type: SystemInt32
ID of the Kinect device to get instance of, [0, DeviceCount),

Return Value

Type: Kinect
Returns initialized Kinect device. Use Dispose method when the device is no longer required.
Exceptions
ExceptionCondition
ArgumentExceptionThere is no Kinect device with specified ID connected to the system.
ConnectionFailedExceptionFailed connecting to the Kinect device specified ID.
See Also