How to integrate Azure Kinect bodytracking in Unity

Lan Yang 25 Reputation points
2023-08-02T14:06:34.52+00:00

Hello,

I'm learning how to integrate Azure Kinect body tracking in Unity using the tutorial video from Angus Antley

https://learn.microsoft.com/en-us/shows/mixed-reality/azure-kinect-body-tracking-unity-integration

I believe I have carefully followed every step to reproduce the implementation: clone the azure-kinect-sample, open the unity_bodytracking project with Unity 2019.2.6f1, make sure the Azure kinect device is running, install the "Microsoft.Azure.Kinect.BodyTracking.1.1.2" package, run the and then run the MoveLibraryFiles.bat and run the sample scene...

But I got the error msg: Catching exception for background thread result = K4A_result_failed (there was also a msg saying that the K4A was sucessfully opened). And the front light(streaming indicator) of my K4A just flashed once when I run the scene, instead of solid white.

Now I'm struggling to find the potential bug in the scripts. Can someone give me any hint about what may go wrong/ what am I missing here?

Thank you

Lan

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

Accepted answer
  1. LeelaRajeshSayana-MSFT 13,621 Reputation points
    2023-08-03T01:30:05.2566667+00:00

    Hi @Lan Yang Greetings! Welcome to Microsoft Q&A forum. Thank you for posting this question here.

    I see that you are using the latest version of Azure body tracking SDK. Instead of the latest version, can you test with the versions of unity and the SDK such as Unity Version: 2019.1.2f1 and SDK Version: Azure Kinect SDK v1.4.1 / Azure Kinect Body Tracking SDK v1.0.1 to see if that helps. Please also make sure that you copy everything in the tools folder of the body tracker sdk into the root of the unity project (same place as the assets folder).

    I also found couple of old GitHub issues which got resolved by copying all the dlls from the SDK to the unity project. Here are the links to the issues

    Unity BodyTracking Sample catching exception for background thread result = K4A_RESULT_FAILED

    AzureKinectException: result = K4A_RESULT_FAILED

    Let me know if this helps.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful