Skip to main content

Open Azure Kinect recordings without the Azure Kinect SDK.

Project description

Open Azure Kinect

Open playback functions for Azure Kinect.

It is possible to playback Azure Kinect videos files (mkv) without using the official SDK. This allows the software to be used on systems where the depth engine is not implemented, such as MacOS. The library currently only supports the playback of mkv files and does not provide direct access to the Azure Kinect device.

The following functions are currently supported:

  • Reading colour, infrared and depth stream from mkv
  • Reading calibration data from mkv

Installation

pip install open-azure-kinect

Usage

In order to load an MKV file, it is necessary to create a new instance of the OpenK4APlayback class.

from openk4a.playback import OpenK4APlayback

azure = OpenK4APlayback("my-file.mkv")
azure.open()

After that, it is possible to read the available stream information.

for stream in azure.streams:
    print(stream)

And read the actual capture information (image data).

while capture := azure.read():
    # read color frame as numpy array
    color_image = capture.color

Development and Examples

To run the examples or develop the library please install the dev-requirements.txt and requirements.txt.

pip install -r dev-requirements.txt
pip install -r requirements.txt

There is already an example script demo.py which provides insights in how to use the library.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

open_azure_kinect-0.1.0a1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file open_azure_kinect-0.1.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for open_azure_kinect-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 b494f4077bc4d8bb4cfff411fed4d7ed8ba7879880d64ce41ab7cf5334813587
MD5 0b9e95b5dd6e94fd5039807ad7fd6b69
BLAKE2b-256 db1469906b04979ba98c07d9e6735f5d3db77ea4836f75fa9d8503013d68d595

See more details on using hashes here.

Supported by

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