Closed Eralien closed 2 years ago
@errissa could you please take a look at this ?
@Eralien Please try changing the line that sets the text color to:
self._obj_3d_labels[box.meta].color = gui.Color(0.8, 0.8, 0)
The color
of the 3D Text is a property and should be set via assignment rather than calling methods on (e.g., set_color
)
Closing due to inactivity. Feel free to reopen if issue still persists.
I have been trying to visualize my own pointcloud sequence data, using the
open3d._ml3d.vis.visualize.Visualizer
in Linux. I am using pip installed open3d in python=3.8, ubuntu 18.04.I implemented my own class inherited from
open3d._ml3d.datasets.base_dataset.BaseDataset
andBaseDatasetSplit
following the example customdataset.py, and called theVisualizer.visualize_dataset
method. The plotting of bounding boxes labels/info were not what I expected. My implementation was based on the SemanticKitti and NuScenes visualization impl.The problems are:
o3d._ml3d.vis.boundingbox.BoundingBox3D
constructor implies that a user-defined string \pmeta
can be initialized, and \pshow_meta
is the proper way to show it. Yet theopen3d._ml3d.vis.visualize.Visualizer
callsBoundingBox3D.create_lines
static method, which only returns ao3d.geometry.LineSet
object. There was no text shown.Unable to change the color of the
Label3D
. This above problem can be solved by editing the visualizer._update_bounding_boxes method in line 1160:Method
add_3d_label
returns aLabel3D
object, and I found no way I can change its shown color. I tried to callLabel3D.color.set_color
which could change the color memory but not the label color shown. Theself._obj_3d_labels
is only a dict to store the generated label object.