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 and parsing 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.is_looping = True # set loop option if necessary
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
Calibration Data
To access the calibration data of the two cameras (Color
, Depth
), use the parsed information property.
color_calib = azure.color_calibration
depth_calib = azure.depth_calibration
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file open_azure_kinect-0.1.0a5-py3-none-any.whl
.
File metadata
- Download URL: open_azure_kinect-0.1.0a5-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 764a10231a34b2b533f91c94ce89f854627439fe3e36eccb14a99fb738623eb6 |
|
MD5 | ef81a42032808bf02dfcbbe6fa5252dc |
|
BLAKE2b-256 | 91741ce4e11e1a29a19ca93a4271994977b33c3702bd94d8b2e0d1a8a47873b6 |