Open3D-ML icon indicating copy to clipboard operation
Open3D-ML copied to clipboard

How do I visualize bounding boxes in different colors?

Open brian-h-wang opened this issue 3 years ago • 1 comments

Checklist

My Question

Hello,

I'm trying to visualize point clouds and 3D object detection bounding boxes, on a KITTI-format dataset. I'd like to show bounding boxes in different colors, e.g. green for ground truth and red for predictions.

Following the readme and the visualizer example in scripts/demo_obj_det.py, I'm able to run PointPillars inference and show the point cloud + bounding boxes in the visualizer, but I'm not sure how to specify different colors for bounding boxes. Based on #392 it seems like this should be possible?

I am using Open3D 0.14.1, installed with conda in Python 3.8, and the Open3D-ML installation bundled with this.

Thank you for your help with this!

brian-h-wang avatar Feb 09 '22 05:02 brian-h-wang

Hello,

Not sure if you still need help with this, but they have a color property [R,G,B]. So with your bounding box you can just set: my_bounding_box.color = [1,0,0] And this would give you a red bounding box, for example.

nek11 avatar Aug 17 '22 15:08 nek11