Skip to main content

Python 3 bindings for the Azure Kinect SDK

Project description

Azure-Kinect-Python

Python 3 bindings for the Azure Kinect SDK

Changelog

  • v1.1.0: Updated supported SDK and firmware versions to latest
  • v1.0.0: Initial release

Setup

Install the right Kinect SDK, Kinect Body Tracking SDK, and device firmware versions

Please uninstall all unrelated SDK versions if you are having issues. The supported versions are:

Add the following to your system PATH:

  • C:\Program Files\Azure Kinect SDK v1.4.1\sdk\windows-desktop\amd64\release\bin
  • C:\Program Files\Azure Kinect Body Tracking SDK\sdk\windows-desktop\amd64\release\bin
  • C:\Program Files\Azure Kinect Body Tracking SDK\tools

(Or relevant paths for your platform containing the the k4a(.so|.dll) and k4abt(.so|.dll) dynamic libraries)

Feature support

Currently only body tracking is wrapped, but adding further wrappings should be easy and PRs would be appreciated!

Examples

There is a very simple example you can run via:

py -3 example/simple_sample.py

Demos

We are using it to develop an Azure Kinect plugin for Blender, which you can see a very early demo of here:

Azure Kinect for Blender

The plugin is available for early access and will be open-sourced soon, please email stephen@hexops.com to gain early access.

Troubleshooting

Do NOT use Python from the Windows Store

If you get the error:

[2021-01-18 14:05:28.307] [error] [t=6336] [K4ABT] D:\a\1\s\src\TrackerHost\TrackerHost.cpp (157): Create(). Find onnxruntime.dll at C:\Program Files\Azure Kinect Body Tracking SDK\tools\onnxruntime.dll but it doesn't load correctly!

It is because the Windows Store installs Python to a restricted user directory which cannot access external DLLs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

k4a-1.1.0.tar.gz (7.0 kB view details)

Uploaded Source

File details

Details for the file k4a-1.1.0.tar.gz.

File metadata

  • Download URL: k4a-1.1.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for k4a-1.1.0.tar.gz
Algorithm Hash digest
SHA256 db1bb76d50df9e009010b0db30f61cbacad8bd0dc0e499ad972365490999d44c
MD5 7cd454b8a01acffdb8559598ebc65eab
BLAKE2b-256 fe51a6e49570a7e026820fcc499b233d6849a7d63ffb2034a11d80dcab228298

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page