Skip to content
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

Open
fshamsafar opened this issue Nov 20, 2019 · 4 comments
Open

Get the Depth Data #7

fshamsafar opened this issue Nov 20, 2019 · 4 comments

Comments

@fshamsafar
Copy link

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

@amy-caali
Copy link
Contributor

amy-caali commented Nov 21, 2019 via email

@fshamsafar
Copy link
Author

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?

@amy-caali
Copy link
Contributor

amy-caali commented Nov 29, 2019 via email

@abbott1234
Copy link

If it is depth value, how to transform the values to mm? The values looks look grey values from 0 to 255.
And the depth returns a vector, how to transform it to array(image)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants