浏览代码

Make GetAnnotationSpecification() public, by popular demand.

/public-spec
Jon Hogins 3 年前
当前提交
a82e894c
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 10
      com.unity.perception/Runtime/GroundTruth/Labeling/IdLabelConfig.cs

10
com.unity.perception/Runtime/GroundTruth/Labeling/IdLabelConfig.cs


m_LabelEntryMatchCache = null;
}
/// <summary>
/// A structure representing a label entry for writing out to datasets.
/// </summary>
internal struct LabelEntrySpec
public struct LabelEntrySpec
{
/// <summary>
/// The label id prepared for reporting in the annotation

public string label_name;
}
internal LabelEntrySpec[] GetAnnotationSpecification()
/// <summary>
/// Returns the label entries as structures suited for writing out to JSON datasets.
/// </summary>
public LabelEntrySpec[] GetAnnotationSpecification()
{
return labelEntries.Select((l) => new LabelEntrySpec()
{

正在加载...
取消
保存