Open3D-ML
Open3D-ML copied to clipboard
How do I visualize bounding boxes in different colors?
Checklist
- [X] I have searched for similar issues.
- [X] I have tested with the latest development wheel.
- [X] I have checked the release documentation and the latest documentation (for
master
branch).
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!
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.