-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
capture_set_color_image with K4A_IMAGE_FORMAT_COLOR_MJPG #212
Comments
I'm not sure if this helps, but perhaps you need to decode the compressed MJPG data into BGRA32 format first, e.g., using |
I got it to work by modifying the
I think that the best way to pass them down would be to add another parameter to Tested the setter for BGRA and MJPG data. Would any of the authors be interested in checking if that's the right approach? |
Hello,
I am working on a case that requires some modifications on color kinect frames. What I want to do is:
What I did so far includes adding a setter method in
capture.py
:Implementation of
capture_set_color_image
inpyk4a.cpp
:The working example can be something like this:
The code works with K4A_IMAGE_FORMAT_COLOR_BGRA32 images, minus some minor issues (it doesn't write Device information to the recording).
I'd like to extend the functionality to modify K4A_IMAGE_FORMAT_COLOR_MJPG format as well, but I can't get
numpy_to_k4a_image
to work with MJPG data.I set
and pass those to
k4a_image_create_from_buffer
, but get error:I can't find anything more in the documentation, and no examples for such usage. Would you be able to help me on this one?
The text was updated successfully, but these errors were encountered: