|
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
)
Public Shared Function GetDevice (
deviceID As Integer
) As Kinect
Request Example
View SourceParameters
- deviceID
- Type: SystemInt32
ID of the Kinect device to get instance of, [0, DeviceCount),
Return Value
Type:
KinectReturns initialized Kinect device. Use
Dispose method
when the device is no longer required.
Exceptions Exception | Condition |
---|
ArgumentException | There is no Kinect device with specified ID connected to the system. |
ConnectionFailedException | Failed connecting to the Kinect device specified ID. |
See Also