Class ObjectCountLabeler
Labeler which produces object counts for each label in the associated IdLabelConfig each frame.
Inherited Members
Namespace: UnityEngine.Perception.GroundTruth
Assembly: solution.dll
Syntax
[Serializable]
public sealed class ObjectCountLabeler : CameraLabeler
Constructors
Name | Description |
---|---|
ObjectCountLabeler() | Creates a new ObjectCountLabeler. This constructor should only be used by serialization. For creation from user code, use ObjectCountLabeler(IdLabelConfig). |
ObjectCountLabeler(IdLabelConfig) | Creates a new ObjectCountLabeler with the given IdLabelConfig. |
Fields
Name | Description |
---|---|
objectCountMetricId | The ID to use for object count annotations in the resulting dataset |
Properties
Name | Description |
---|---|
labelConfig | The IdLabelConfig which associates objects with labels. |
Methods
Name | Description |
---|---|
OnBeginRendering() | Called just before the camera renders 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. |
Events
Name | Description |
---|---|
ObjectCountsComputed | Fired when the object counts are computed for a frame. |