-
Notifications
You must be signed in to change notification settings - Fork 11
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
Get the Depth Data #7
Comments
I think you're missing a k4a.image_get_buffer() call. We're using
something like:
capture = k4a.Capture()
res = k4a.device_get_capture(dev, capture, 1000)
if res == k4a.K4A_WAIT_RESULT_SUCCEEDED:
img = k4a.capture_get_depth_image(capture)
if img:
imx = np.array(k4a.image_get_buffer(img))
...
del capture
To access the depth image and manage the capture. Hope this helps!
…On Wed, Nov 20, 2019 at 6:05 AM FSh ***@***.***> wrote:
Thank you for this python library for Kinect Azure.
I could run the *example.py* successfully. But how can I get access to
the depth data? I want the depth information to further be processed by
some other algorithms.
I added depth = k4a.capture_get_depth_image(capture) and
k4a.image_release(depth). But it did not obtain the depth.
Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#7?email_source=notifications&email_token=ALI4ASJXW74M63JI6M7GA53QUURYTA5CNFSM4JPRU742YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H2WPXUQ>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALI4ASNMY2M7B5MGNRDZN4DQUURYTANCNFSM4JPRU74Q>
.
|
Thanks :) It worked :) The output for |
I don’t think depth and color image are the same camera — and I don’t think
depth is square — check the documentation here:
https://docs.microsoft.com/en-us/azure/Kinect-dk/hardware-specification
…On Fri, Nov 29, 2019 at 3:57 AM FSh ***@***.***> wrote:
Thanks :) It worked :) The output for K4A_COLOR_RESOLUTION_720P is an
array of dimension 245520. But why it does not match with the
image_get_height_pixels(img), which is 720 and image_get_width_pixels(img),
which is 1280. I mean totally it should have 720*1280*3=2764800 values
and not 245520. What is missing here for reshaping the flattened data to
an image?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#7?email_source=notifications&email_token=ALI4ASP2MW7IYS63CUI4ZLDQWDRPJA5CNFSM4JPRU742YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFONKBI#issuecomment-559731973>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALI4ASIVKL5SAZB6AASYZCTQWDRPJANCNFSM4JPRU74Q>
.
|
If it is depth value, how to transform the values to mm? The values looks look grey values from 0 to 255. |
Thank you for this python library for Kinect Azure.
I could run the example.py successfully. But how can I get access to the depth data? I want the depth information to further be processed by some other algorithms.
I added
depth = k4a.capture_get_depth_image(capture)
andk4a.image_release(depth)
. But it did not obtain the depth.Thanks
The text was updated successfully, but these errors were encountered: