Quickstart: Set up Azure Kinect body tracking
This quickstart will guide you through the process of getting body tracking running on your Azure Kinect DK.
The Body Tracking SDK requires a NVIDIA GPU installed in the host PC. The recommended body tracking host PC requirement is described in system requirements page.
Install the latest NVIDIA Driver
Download and install the latest NVIDIA driver for your graphics card. Older drivers may not be compatible with the CUDA binaries redistributed with the body tracking SDK.
Visual C++ Redistributable for Visual Studio 2015
Download and install Visual C++ Redistributable for Visual Studio 2015.
Set up hardware
Set up Azure Kinect DK
Launch the Azure Kinect Viewer to check that your Azure Kinect DK is set up correctly.
Download the Body Tracking SDK
- Select the link to Download the Body Tracking SDK
- Install the Body Tracking SDK on your PC.
Verify body tracking
Launch the Azure Kinect Body Tracking Viewer to check that the Body Tracking SDK is set up correctly. The viewer is installed with the SDK msi installer. You can find it at your start menu or at
<SDK Installation Path>\tools\k4abt_simple_3d_viewer.exe.
If you don't have a powerful enough GPU and still want to test the result, you can launch the the Azure Kinect Body Tracking Viewer in the command line by the following command:
<SDK Installation Path>\tools\k4abt_simple_3d_viewer.exe CPU
If everything is set up correctly, a window with a 3D point cloud and tracked bodies should appear.
Specifying ONNX Runtime execution environment
The Body Tracking SDK supports CPU, CUDA, DirectML (Windows only) and TensorRT execution environments to inference the pose estimation model. The
K4ABT_TRACKER_PROCESSING_MODE_GPU defaults to CUDA execution on Linux and DirectML execution on Windows. Three additional modes have been added to select specific execution environments:
ONNX Runtime displays warnings for opcodes that are not accelerated. These may be safely ignored.
ONNX Runtime includes environment variables to control TensorRT model caching. The recommended values are:
The folder must be created prior to starting body tracking.
TensorRT pre-processes the model prior to inference resulting in extended start up times when compared to other execution environments. Engine caching limits this to first execution however it is experimental and is specific to the model, ONNX Runtime version, TensorRT version and GPU model.
The TensorRT execution environment supports both FP32 (default) and FP16. FP16 trades ~2x performance increase for minimal accuracy decrease. To specify FP16:
Required DLLs for ONNX Runtime execution environments
|Mode||ORT 1.10||CUDA 11.4.3||CUDNN 188.8.131.52||TensorRT 184.108.40.206|
You can find the examples about how to use the body tracking SDK here.
Submit and view feedback for