etiennedub / pyk4a

Python 3 wrapper for Azure-Kinect-Sensor-SDK
MIT License
287 stars 81 forks source link

Support MJPG #178

Open msqiu opened 1 year ago

msqiu commented 1 year ago

The default record format of Azure Kinect is MJPG, and the provided transformation format is BGRA. The convert function is provided here.

lpasselin commented 1 year ago

Damm this requires adding opencv as a dependency! Should we replace by a comment pointing to a utility file?

msqiu commented 1 year ago

Damm this requires adding opencv as a dependency! Should we replace by a comment pointing to a utility file?

IDK. The problem is that the default record format is MJPG and it is necessary to use BGRA for processing. Thanks to Microsoft:(

shagren commented 1 year ago

IDK. The problem is that the default record format is MJPG and it is necessary to use BGRA for processing. Thanks to Microsoft:(

You can open camera with BGRA color_format, in this case mkv will store uncompressed bgra(or rgb, I forgot details). But file will be VERY HUGE.

msqiu commented 1 year ago

IDK. The problem is that the default record format is MJPG and it is necessary to use BGRA for processing. Thanks to Microsoft:(

You can open camera with BGRA color_format, in this case mkv will store uncompressed bgra(or rgb, I forgot details). But file will be VERY HUGE.

Not only huge, also impossible to capture at 30FPS on my laptop...