Skip to main content

function box3d

Description

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

Args

  • center: The center point of the box as a length-3 ndarray.
  • size: The box’s X, Y and Z dimensions as a length-3 ndarray.
  • orientation: 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.
  • color: The box’s color as an (r, g, b) tuple with 0 <= r,g,b <= 1.
  • label: An optional label for the box.
  • score: 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.