Class LabelingConfiguration
A definition for how a Labeling should be resolved to a single label and id for ground truth generation.
Inherited Members
Namespace: UnityEngine.Perception.GroundTruth
Assembly: solution.dll
Syntax
[CreateAssetMenu(fileName = "LabelingConfiguration", menuName = "Perception/Labeling Configuration", order = 1)]
public class LabelingConfiguration : ScriptableObject
Fields
Name | Description |
---|---|
AutoAssignIds | Whether the inspector will auto-assign ids based on the id of the first element. |
LabelEntries | A sequence of LabelEntry which defines the labels relevant for this configuration and their values. |
StartingLabelId | Whether the inspector will start label ids at zero or one when AutoAssignIds is enabled. |
Methods
Name | Description |
---|---|
TryGetMatchingConfigurationEntry(Labeling, out LabelEntry) | Attempts to find the matching index in LabelEntries for the given Labeling. |
TryGetMatchingConfigurationEntry(Labeling, out LabelEntry, out int) | Attempts to find the matching index in LabelEntries for the given Labeling. |