Class PerceptionCamera
Captures ground truth from the associated Camera.
Inherited Members
Namespace: UnityEngine.Perception.GroundTruth
Assembly: solution.dll
Syntax
[RequireComponent(typeof(Camera))]
public class PerceptionCamera : MonoBehaviour
Fields
Name | Description |
---|---|
captureRgbImages | Whether camera output should be captured to disk |
description | A human-readable description of the camera. |
period | The period in seconds that the Camera should render |
startTime | The start time in seconds of the first frame in the simulation. |
Properties
Name | Description |
---|---|
SensorHandle | The SensorHandle associated with this camera. Use this to report additional annotations and metrics at runtime. |
labelers | The CameraLabeler instances which will be run for this PerceptionCamera. |
Methods
Name | Description |
---|---|
AddLabeler(CameraLabeler) | Add the given CameraLabeler to the PerceptionCamera. It will be set up and executed by this PerceptionCamera each frame it captures data. |
RemoveLabeler(CameraLabeler) | Removes the given CameraLabeler from the list of labelers under this PerceptionCamera, if it is in the list. The labeler is cleaned up in the process. Labelers removed from a PerceptionCamera should not be used again. |
RemovePersistentSensorData(string) | Removes a persistent sensor data object. |
SetPersistentSensorData(string, object) | Add a data object which will be added to the dataset with each capture. Overrides existing sensor data associated with the given key. |
Events
Name | Description |
---|---|
InstanceSegmentationImageReadback | Invoked when instance segmentation images are read back from the graphics system. The first parameter is the Time.frameCount at which the objects were rendered. May be invoked many frames after the objects were rendered. |
RenderedObjectInfosCalculated | Invoked when RenderedObjectInfos are calculated. The first parameter is the Time.frameCount at which the objects were rendered. This may be called many frames after the objects were rendered. |