Struct Annotation
A handle to an annotation. Can be used to report metrics on the annotation.
Implements
Inherited Members
Namespace: UnityEngine.Perception.GroundTruth
Assembly: solution.dll
Syntax
public struct Annotation : IEquatable<Annotation>
Fields
Name | Description |
---|---|
Id | The ID of the annotation which will be used in the json metadata. |
SensorHandle | The SensorHandle on which the annotation was reported |
Step | The step on which the annotation was reported. |
Properties
Name | Description |
---|---|
IsNil | Returns true if the annotation is nil (created using default instantiation). |
Methods
Name | Description |
---|---|
Equals(object) | Indicates whether this instance and a specified object are equal. |
Equals(Annotation) | Indicates whether the current object is equal to another object of the same type. |
GetHashCode() | Returns the hash code for this instance. |
ReportMetric(MetricDefinition, string) | Reports a metric on this annotation. May only be called in the same frame as the annotation was reported. |
ReportMetricAsync(MetricDefinition) | Report a metric whose values will be supplied in a later frame. |
ReportMetric<T>(MetricDefinition, T[]) | Reports a metric on this annotation. May only be called in the same frame as the annotation was reported. |