Class BoundingBox3DLabeler
Produces 3d bounding box ground truth for all visible and Labeling objects each frame.
Inherited Members
Namespace: UnityEngine.Perception.GroundTruth
Assembly: solution.dll
Syntax
public class BoundingBox3DLabeler : CameraLabeler
Constructors
| Name | Description |
|---|---|
| BoundingBox3DLabeler() | Creates a new BoundingBox3DLabeler. Be sure to assign idLabelConfig before adding to a PerceptionCamera. |
| BoundingBox3DLabeler(IdLabelConfig) | Creates a new BoundingBox3DLabeler with the given IdLabelConfig. |
Fields
| Name | Description |
|---|---|
| annotationId | The GUID id to associate with the annotations produced by this labeler. |
| idLabelConfig | The IdLabelConfig which associates objects with labels. |
| visualizationColor | Color to use for 3D visualization box |
Properties
| Name | Description |
|---|---|
| description | A human-readable description of the labeler |
| supportsVisualization | Labelers should set this in their setup to define if they support realtime visualization of their data. |
Methods
| Name | Description |
|---|---|
| OnBeginRendering() | Called just before the camera renders each frame the the labeler is enabled and ShouldCaptureThisFrame is true. |
| OnVisualize() | Labeling pass to display labeler's visualization components, if applicable. Important note, all labeler's visualizations need to use Unity's Immediate Mode GUI (IMGUI) https://docs.unity3d.com/Manual/GUIScriptingGuide.html system. This called is triggered from perceptionCamera.OnGUI call. This call happens immediately before OnVisualizeAdditionalUI() so that the visualization components are drawn below the UI elements. |
| Setup() | Called just before the first call to OnUpdate() or OnBeginRendering(). Implement this to initialize state. |
Events
| Name | Description |
|---|---|
| BoundingBoxComputed | Fired when the bounding boxes are computed for a frame. |