Skip to main content

function wandb.box3d()

A 3D bounding box. The box is specified by its center, size and orientation.

Args

npt.ArrayLike
The center point of the box as a length-3 ndarray.
npt.ArrayLike
The box’s X, Y and Z dimensions as a length-3 ndarray.
npt.ArrayLike
The rotation transforming global XYZ coordinates into the box’s local XYZ coordinates, given as a length-4 ndarray [r, x, y, z] corresponding to the non-zero quaternion r + xi + yj + zk.
RGBColor
The box’s color as an (r, g, b) tuple with 0 <= r,g,b <= 1.
str | None
An optional label for the box.
numeric | None
An optional score for the box. Typically used to indicate the confidence of a detection.

Returns

A Box3D object.

Examples

The following example creates a point cloud with 60 boxes rotating around the X, Y and Z axes.