Azure Kinect Sensor SDK  refs/heads/master
Documentation for https://github.com/Microsoft/Azure-Kinect-Sensor-SDK

◆ k4a_device_open()

k4a_result_t k4a_device_open ( uint32_t  index,
k4a_device_t device_handle 
)
related

Open an Azure Kinect device.

Parameters
indexThe index of the device to open, starting with 0. Optionally pass in K4A_DEVICE_DEFAULT.
device_handleOutput parameter which on success will return a handle to the device.
Returns
K4A_RESULT_SUCCEEDED if the device was opened successfully.
Remarks
If successful, k4a_device_open() will return a device handle in the device_handle parameter. This handle grants exclusive access to the device and may be used in the other Azure Kinect API calls.
When done with the device, close the handle with k4a_device_close()