Class CameraLabeler
Abstract class for defining custom annotation and metric generation to be run by PerceptionCamera. Instances of CameraLabeler on labelers will be invoked each frame the camera is set to capture data (see ShouldCaptureThisFrame).
Inherited Members
Namespace: UnityEngine.Perception.GroundTruth
Assembly: solution.dll
Syntax
[Serializable]
public abstract class CameraLabeler
Fields
Name | Description |
---|---|
enabled | Whether the CameraLabeler should be set up and called each frame. |
Properties
Name | Description |
---|---|
perceptionCamera | The PerceptionCamera that contains this labeler. |
sensorHandle | The SensorHandle for the PerceptionCamera that contains this labeler. Use this to report annotations and metrics. |
Methods
Name | Description |
---|---|
Cleanup() | Called when the Labeler is about to be destroyed or removed from the PerceptionCamera. Use this to clean up to state. |
OnBeginRendering() | Called just before the camera renders each frame the the labeler is enabled and ShouldCaptureThisFrame is true. |
OnUpdate() | Called during the Update each frame the the labeler is enabled and ShouldCaptureThisFrame is true. |
Setup() | Called just before the first call to OnUpdate() or OnBeginRendering(). Implement this to initialize state. |