How to use 2 azure kinect in one computer?

석현 고 1 Reputation point
2023-08-24T07:01:56.72+00:00

I would like to connect two Azure Kinect devices to a single computer to obtain body joint information from two sets of sensors. When I try to create two trackers for this purpose, I encounter an error stating that only one tracker can be used per process. Is there a solution to this issue?

Azure Kinect DK
Azure Kinect DK
A Microsoft developer kit and peripheral device with advanced artificial intelligence sensors for sophisticated computer vision and speech models.
287 questions
{count} votes

1 answer

Sort by: Most helpful
  1. LeelaRajeshSayana-MSFT 13,621 Reputation points
    2023-08-24T16:14:50.0033333+00:00

    Hi @석현 고 Greetings! Welcome to Microsoft Q&A forum. Thank you for posting this question here.

    In order to be able to use and record through multiple Azure Kinect DKs from a single host PC, you would have to set one of the Azure Kinect DK devices as a subordinate device and the other as Master. You can do this by using the following approach.

    1. k4arecorder.exe --device 1 --external-sync subordinate --imu OFF -e -8 -r 5 -l 5 output-2.mkv. This command will start recording on Azure Kinect as a subordinate device.
    2. k4arecorder.exe --device 0 --external-sync master --imu OFF -e -8 -r 5 -l 5 output-1.mkv. This command will start the second device as a Master device.
    3. You can use the Azure Kinect viewer to play back recording.

    This will help synchronize the recording between two devices. Please refer the documentation Recording when multiple units connected to single host PC for more details. Hope this provides guidance on the next steps. If you want to record body joint information, you may want to try the command k4arecorder.exe --body-tracking on --external-sync sub --device <device_index> --output output.mkv to get the body tracking information.

    If you are trying to use the Kinect device from an SDK, please refer the steps in the article Find then open the Azure Kinect device. The article explains how to handle the case where there are multiple devices connected to your machine.

    Please let us know if you need any additional guidance on this.


    If the response helped, please do click Accept Answer and Yes for the answer provided. Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.