Plotting the bounding boxes in the point cloud #3601
Replies: 1 comment
-
Better late than never. For starters, the multiple version of the "unproject" functions are currently in awkward places of Open3D. So we need to start by writing our own unproject function:
This is just a quick and dirty way to do the unproject, as a way of example. Then use the unproject function to create an array with the 3D points representing the 4 points of your bounding box.
Now you can assume that the 3D bounding box is aligned with +Z. Therefore the missing 4 points defining the 3D bounding box must be:
where delta_Z is a free parameter defined by the user or somehow estimated from additional information. After that, you can create a point cloud and extract an oriented bounding box.
Finally, if you are able to obtain the orientation of the bounding box from additional information, you could apply rotate to the obb object. Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am working on a project in which I have an RGB Image and the corresponding 2d bounding boxes for the objects in the image. I also have a respective point cloud and therefore, I can extract the depth information of the objects in the 2d image from the point cloud. I would like to convert these 2d bounding boxes to 3d boxes (cuboid) and then plot it inside the point cloud, thus indicating the position/orientation, i.e. pose of the object inside the point cloud.
However, I am stuck on the conversion of 2d boxes to 3d. Can anyone lend a hand perhaps?
Thank You.
Beta Was this translation helpful? Give feedback.
All reactions