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

how to get the depth value of a 2d pixel coordinate from RGB image #126

Open
Benxiaogu opened this issue Dec 31, 2024 · 0 comments
Open

Comments

@Benxiaogu
Copy link

I need to get the 3d coordinate from a 2d coordinate from RGB image,
I tried the code from exampleTransformPoint2DTo3D.py
pos3d_color = device.calibration.convert_2d_to_3d(pixels, rgb_depth, K4A_CALIBRATION_TYPE_COLOR, K4A_CALIBRATION_TYPE_COLOR)
pos3d_depth = device.calibration.convert_2d_to_3d(pixels, rgb_depth, K4A_CALIBRATION_TYPE_COLOR, K4A_CALIBRATION_TYPE_DEPTH)

It cannot get the proper the value.
How do I get the proper 3d coordinate?
Thank you for your help

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

1 participant