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

I want to transfer the bounding box to the point cloud. Which pyrealsense2 function or external library function can I use? #12197

Closed
Fc6868 opened this issue Sep 14, 2023 · 2 comments

Comments

@Fc6868
Copy link

Fc6868 commented Sep 14, 2023

Required Info
Camera Model { D400 }

| Operating System & Version | {Windows (10) |

| Platform | PC. |
| SDK Version | { legacy / 2.. } |
| Language | {python } |

Issue Description

Hello, I am getting the bounding box (xmin,ymin,xmax,ymax) information as pixel coordinates (u,v) from the RGB image.
My questions:
1-) I want to transfer the bounding box to the point cloud. Which pyrealsense2 function or external library function can I use?
2-) I am looking for a function that can then find the point cloud coordinates in the Bounding box?
Thanks for help.

@MartyG-RealSense
Copy link
Collaborator

Hi @Fc6868 A Python point cloud cropping script at #2769 (comment) may be a helpful reference for you.

You can obtain the 3D X, Y, Z coordinates of the processed pointcloud from its vertices (verts).

@MartyG-RealSense
Copy link
Collaborator

Hi @Fc6868 Do you require further assistance with this case, please? Thanks!

@Fc6868 Fc6868 closed this as completed Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants