Class BoundingBox2DLabeler
Produces 2d bounding box annotations for all visible objects each frame.
Inherited Members
Namespace: UnityEngine.Perception.GroundTruth
Assembly: solution.dll
Syntax
[Serializable]
public sealed class BoundingBox2DLabeler : CameraLabeler
Constructors
| Name | Description |
|---|---|
| BoundingBox2DLabeler() | Creates a new BoundingBox2DLabeler. Be sure to assign idLabelConfig before adding to a PerceptionCamera. |
| BoundingBox2DLabeler(IdLabelConfig) | Creates a new BoundingBox2DLabeler 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. |
Properties
| Name | Description |
|---|---|
| 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. |
| OnVisualizerEnabledChanged(bool) | Called when the labeler's visualization capability is turned on or off. |
| PopulateVisualizationPanel(ControlPanel) | Called immediately after setup. Implement this to initialize labeler's visualization capability if one exists supportVisualization. |
| Setup() | Called just before the first call to OnUpdate() or OnBeginRendering(). Implement this to initialize state. |