xblick-azure-kinect
xblick-azure-kinect publishes the colour, depth, IR and IMU data of an Azure Kinect as
Durchblick streams, at up to 30 captures per second.
Body tracking is a separate repository: xblick-k4abt reads these streams
and publishes the bodies that the Azure Kinect Body Tracking SDK finds.
The node produces each representation of a stream only while a subscriber asks for it. It needs no X server, so it runs on a headless camera PC.
Installed from its Python wheel, the node needs one setup command after the install, xblick-azure-kinect-setup. It
downloads Microsoft's depth engine, which is under Microsoft's licence terms and not part of the wheel, once you accept
those terms
(Optional: the Python wheel).
What it publishes
The node publishes below one base name. The default base is cam/azurekinect.
| Topic | Type | Content |
|---|---|---|
<base>/color |
image, rgb8 |
The colour camera. JPEG subscribers get the camera's own JPEG bytes. |
<base>/color_rect |
image, rgb8 |
The colour image without lens distortion. |
<base>/depth |
image, 16UC1, mm |
The depth camera in its own geometry (640 x 576 in NFOV unbinned). |
<base>/ir |
image, mono16 |
The IR image of the depth camera, with the stamp of the depth frame. |
<base>/depth_to_color |
image, 16UC1, mm |
The depth as the colour camera sees it. |
<base>/depth_to_color_rect |
image, 16UC1, mm |
The depth as the camera of color_rect sees it. |
<base>/imu |
sensor_msgs/Imu |
One message per IMU sample, about 1600 per second. |
<base>/tf_static |
tf2_msgs/TFMessage |
The poses of the colour camera and the IMU in the depth camera's frame. |
<base>/k4a_calibration |
JSON, queryable | The calibration record of the device. |
<base>/diagnostics |
diagnostic_msgs/DiagnosticArray |
Rates, drops, restarts, temperature and settings, about once a second. |
Every image stream carries its CameraInfo. Durchblick's point cloud node computes coloured point clouds from these
streams on <base>/points. xblick-k4abt publishes the tracked bodies on
<base>/bodies. docs/streams.md describes every stream, the calibration files and the point
clouds.
Requirements
| Need | For |
|---|---|
| Linux on x86-64 | everything |
| CMake 3.24 or newer, Ninja, a C++20 compiler | the build |
| Durchblick 0.5.5 or a later 0.5, C++ package | everything |
| zenoh-c and zenoh-cpp 1.10 | everything |
Azure Kinect Sensor SDK 1.4 with k4arecord and the depth engine |
everything |
| nlohmann_json, libjpeg or libjpeg-turbo, libpng | everything |
NVIDIA GPU and driver with EGL, GLVND's libGL and libX11 |
the depth engine without an X server |
CUDA toolkit 12 or newer with nvcc and nvJPEG |
optional: colour decoding and rectification on the GPU, CUDA rings, xblick-points |
Every program connects to the Zenoh router of its PC (zenohd on port 7447). Durchblick's
sessions page explains
the routers.
Install
tools/setup.sh installs the prerequisites, builds the programs, runs the tests and installs the programs in
install/. It does not use sudo.
git clone https://github.com/xblick/xblick-azure-kinect.git
cd xblick-azure-kinect
tools/setup.sh
- The script shows the name and link of Microsoft's licence terms for the Sensor SDK and downloads nothing of it
before you accept them: type
yeswhen it asks, or pass--accept-microsoft-license, or setXBLICK_ACCEPT_MICROSOFT_LICENSE=yes. Without a terminal and without either, it stops. It records the acceptance and does not ask again. - If Ubuntu packages are missing, the script stops and prints the
sudo apt installcommand for them. - If the udev rule for the camera is missing, the script prints the commands that install it and goes on. Without the rule, only root can open the camera.
- The script builds the CUDA parts when
nvidia-smilists a GPU. They need a CUDA toolkit, 12 or newer, at/usr/local/cudaor at--cuda-toolkit DIR.--no-gpubuilds without them. - A second call does only what changed.
tools/setup.sh --helplists the options. - Body tracking has its own setup script in xblick-k4abt.
The script keeps the prerequisites in Durchblick's cache directory, by default ~/.cache/xblick/azure-kinect.
Every download has a pinned version and a sha256 checksum. Microsoft's Sensor SDK comes from Microsoft's package
repository and is under Microsoft's licence terms.
docs/build.md lists every download with its source and terms, the manual build with CMake and what
each test checks.
Optional: the Python wheel
The wheel xblick-azure-kinect holds the two programs, built, with the libraries that they need. It needs no
compiler and no CUDA toolkit. Each release carries it.
Install it with uv or pip:
uv tool install --with-executables-from xblick \
https://github.com/xblick/xblick-azure-kinect/releases/download/v0.4.1/xblick_azure_kinect-0.4.1-py3-none-manylinux_2_28_x86_64.whl
xblick-azure-kinect-setup # once per PC: accept Microsoft's terms, get the depth engine, see what needs sudo
xblick router & # once per PC, unless a router runs already
xblick-azure-kinect
xblick-azure-kinect-setupshows the name and link of Microsoft's licence terms and downloads nothing before you accept them: typeyeswhen it asks, or pass--accept-microsoft-license, or setXBLICK_ACCEPT_MICROSOFT_LICENSE=yes. Without a terminal and without either, it stops. Then it downloads Microsoft's packagelibk4a1.41.4.1 with the pinned sha256 thattools/setup.shuses and unpacks the depth engine into~/.cache/xblick/azure-kinect/depth-engine-1.4.1/, with the terms and the record of the acceptance.XBLICK_HOMEmoves the directory, as for every node.- The node needs the depth engine for a camera and for
--sdk-depth-to-color. Without it, the node stops there and names the setup command. A recording plays without it. - The setup command prints the
sudocommands for what is missing: the udev rule for the camera and the system librarieslibgl1,libx11-6,libegl1andlibudev1. - The wheel needs Linux on x86-64 with glibc 2.28 or newer, Python 3.10 to 3.13, and an NVIDIA GPU with its driver, 525 or newer, for EGL and CUDA 12. NVIDIA's nvJPEG and CUDA runtime come from PyPI as dependencies of the wheel, about 9 MB to download.
--cuda-device 0is the default, as in a CUDA build. Without a usable GPU, the node stops with one line;--cuda-device nonedecodes the colour on the CPU.- The wheel contains no SDK tools such as
k4arecorder, noxblick-pointsand not the CMake packagexblick_k4a. These come withtools/setup.sh. pip install <the same URL>in a venv installs the same commands.xblickcomes with it as a dependency.- Each release also carries the source code of the LGPL libraries in the wheel's
libk4a(NOTICE).
Run
In each new shell, put the programs on PATH first. Start one Zenoh router per PC, unless one runs already.
source install/env.sh
zenohd --no-multicast-scouting -l tcp/0.0.0.0:7447 &
Start the camera node. It prints ready when the streams are up.
xblick-azure-kinect
The other programs read the streams of that node.
# a recording of k4arecorder in place of the camera
xblick-azure-kinect --playback take.mkv --loop
# body tracking: xblick-k4abt from https://github.com/xblick/xblick-k4abt
xblick-k4abt
# coloured point clouds on cam/azurekinect/points, with Durchblick's point cloud node (CUDA builds)
xblick-points --depth cam/azurekinect/depth --color cam/azurekinect/color
# a viewer on another host
xblick rerun cam/azurekinect/color cam/azurekinect/depth cam/azurekinect/ir \
cam/azurekinect/depth_to_color --points cam/azurekinect/points --spawn --connect <camera host>
Most users change these options:
| Option | Default | Effect |
|---|---|---|
--base NAME |
cam/azurekinect |
The base name of all topics. |
--cuda-device N|none |
0 in CUDA builds |
The GPU that decodes the colour image and holds the CUDA rings. |
--color-resolution MODE |
720P |
The colour resolution. |
--depth-mode MODE |
NFOV_UNBINNED |
The depth mode. |
--params-file FILE, --param NAME:=VALUE |
none | Start values of the parameters. |
--color-calibration FILE, --depth-calibration FILE |
none | Calibration files that replace the device's intrinsics. |
--help lists every option of a program, and a program stops at an unknown option. Every option of the camera is
also a read-only parameter of the node <base>. Durchblick's terminal interface (xblick, tab Parameters) shows them, and
--param NAME:=VALUE or --params-file FILE set them at the start.
docs/options.md lists every option. docs/parameters.md lists the camera
settings that you can change while the node runs, such as exposure and white balance.
Why it is fast
At 1080P, decoding a colour frame on the CPU takes 4.39 ms. This node spends 0.006 ms per frame for a JPEG subscriber and 1.20 ms for a subscriber that reads pixels on the GPU.
| Change | Effect |
|---|---|
| The node passes the camera's MJPEG bytes on unchanged. | A JPEG subscriber costs no decoding. |
| nvJPEG decodes the colour image into GPU memory. | 1080P pixels cost 1.20 ms, against 4.39 ms on the CPU. |
The node computes depth_to_color on the CPU. |
The camera keeps 30 captures per second on a GPU that other programs use. |
| Four threads publish the streams in parallel. | A slow upload of one stream does not delay the next capture. |
docs/performance.md has every measurement with its setup.
Limits
- Nobody has measured the fixed delay between the exposure and the arrival of an image. Stamps are late by that delay.
- The calibration files replace the intrinsics only. The extrinsics stay the factory values.
- One program can open a device. No other driver may open the same camera.
docs/hardware-checks.md is the checklist for a session with the camera attached.
Documentation
| Page | Content |
|---|---|
| docs/streams.md | Every stream in detail, calibration files, rectified colour, point clouds, viewing. |
| docs/options.md | Every command-line option of the two programs. |
| docs/parameters.md | The camera's parameters, the parameter services, the client, the diagnostics. |
| docs/timestamps.md | How the node computes the stamp of a frame. |
| docs/performance.md | Cost per frame and per capture. |
| docs/design.md | How the node works inside, the decisions and the special cases of the Azure Kinect. |
| docs/build.md | Dependencies, CMake options, tests. |
| docs/hardware-checks.md | The checks that still need a camera. |
Durchblick's concept pages explain the terms that these pages use: streams and topics, transports, rings and timestamps.
Licence and credits
The code of this repository is under the Apache License 2.0 (LICENSE). The test calibration
tests/data/k4a_test_calibration.json comes from Microsoft's Azure Kinect Sensor SDK, under the MIT licence. The
repository does not contain the Sensor SDK or its closed-source depth engine. You install them separately, and they
have Microsoft's licence terms. NOTICE has the details.
Metadata
Release files for xblick-azure-kinect 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xblick_azure_kinect-0.4.1-py3-none-manylinux_2_28_x86_64.whl | Python 3 | none | Linux glibc 2.28+ x86-64 | Details for xblick_azure_kinect-0.4.1-py3-none-manylinux_2_28_x86_64.whl |
Release files / xblick_azure_kinect-0.4.1-py3-none-manylinux_2_28_x86_64.whl
| Download URL | xblick_azure_kinect-0.4.1-py3-none-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 9.8 MB |
| Tags | Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
808b0a8b7663aca4e1d53b784d9d1634f89f7d71e9975e2b338b91695e3b03b3
|
|
BLAKE2b-256 checksum How to use checksums |
c537dad1d6128058bdc5aa7688e2eaba3f3841583bf612cd6d2d613f49119206
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logSecurity for xblick-azure-kinect 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
1 file in this release has been uploaded with provenance metadata.
Attestation for xblick_azure_kinect-0.4.1-py3-none-manylinux_2_28_x86_64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.