Closed hobbitsyfeet closed 2 years ago
Hi,
With pyk4a, all capture data is available with the PyK4ACapture object.
capture: PyK4ACapture = playback.get_next_capture()
print(capture.color_exposure_usec)
iso was not implemented and I am not sure why. It should be easy to add. Almost the same code as color_usec retrieval. You should create a PR if you implement it!
Brilliant! I found I was using a version from 2020 and this was implemented since then.
I'll look into mimicking your code to get iso as well (I'm not experienced, is there somewhere you could point to get familiar with porting the code?)
Thank you very much!
Ok, I got it working after writing and compiling it. Do you have any knowledge if MKV files record exposure and ISO? The functions seem to return 0, and raise the "Cannot read exposure from color image" so my guess is not.
I'll write up a PR in a bit with tests.
Do you have any knowledge if MKV files record exposure and ISO? The functions seem to return 0, and raise the "Cannot read exposure from color image" so my guess is not.
I really don't know. Maybe @shagren can answer
I dunno :(
Associated PR: https://github.com/etiennedub/pyk4a/pull/176
I am looking to grab the Exposure and ISO for each frame through the Pyk4aPlayback. In C++ it would look something like this:
With PyK4a, you access the image through
playback.get_next_capture().color
which ends up being a NumPy array of the colour image with no access to exposure or ISO values.I saw the function in pyk4a.cpp and wondered if you are moving towards implementation.
Thanks.