Class BoundingBox3DLabeler
Produces 3d bounding box ground truth for all visible and Labeling objects each frame.
Inherited Members
Namespace: UnityEngine.Perception.GroundTruth
Syntax
public class BoundingBox3DLabeler : CameraLabeler
Constructors
BoundingBox3DLabeler()
Creates a new BoundingBox3DLabeler. Be sure to assign idLabelConfig before adding to a PerceptionCamera.
Declaration
public BoundingBox3DLabeler()
BoundingBox3DLabeler(IdLabelConfig)
Creates a new BoundingBox3DLabeler with the given IdLabelConfig.
Declaration
public BoundingBox3DLabeler(IdLabelConfig labelConfig)
Parameters
Type | Name | Description |
---|---|---|
IdLabelConfig | labelConfig | The label config for resolving the label for each object. |
Fields
annotationId
The GUID id to associate with the annotations produced by this labeler.
Declaration
public string annotationId
Field Value
Type | Description |
---|---|
String |
idLabelConfig
The IdLabelConfig which associates objects with labels.
Declaration
public IdLabelConfig idLabelConfig
Field Value
Type | Description |
---|---|
IdLabelConfig |
Properties
description
A human-readable description of the labeler
Declaration
public override string description { get; protected set; }
Property Value
Type | Description |
---|---|
String |
Overrides
supportsVisualization
Labelers should set this in their setup to define if they support realtime visualization of their data.
Declaration
protected override bool supportsVisualization { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Methods
OnBeginRendering()
Called just before the camera renders each frame the the labeler is enabled and ShouldCaptureThisFrame is true.
Declaration
protected override void OnBeginRendering()
Overrides
Setup()
Called just before the first call to OnUpdate() or OnBeginRendering(). Implement this to initialize state.
Declaration
protected override void Setup()
Overrides
Events
BoundingBoxComputed
Fired when the bounding boxes are computed for a frame.
Declaration
public event Action<int, List<BoundingBox3DLabeler.BoxData>> BoundingBoxComputed
Event Type
Type | Description |
---|---|
Action<Int32, List<BoundingBox3DLabeler.BoxData>> |