etiennedub / pyk4a

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

Support MJPG #178

Open msqiu opened 2 years ago

msqiu commented 2 years 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 2 years ago

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

msqiu commented 2 years 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 2 years 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 2 years 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...