浏览代码

Make GetAnnotationSpecification() public, by popular demand. (#335)

* Make GetAnnotationSpecification() public, by popular demand.

* Updating changelog
/main
GitHub 3 年前
当前提交
3483af52
共有 2 个文件被更改,包括 10 次插入2 次删除
  1. 2
      com.unity.perception/CHANGELOG.md
  2. 10
      com.unity.perception/Runtime/GroundTruth/Labeling/IdLabelConfig.cs

2
com.unity.perception/CHANGELOG.md


Added a Keypoint Occlusion Override component which allows a user to universally scale all of the keypoint tolerances for a model.
Make IdLabelConfig.GetAnnotationSpecification() public.
### Changed
Increased color variety in instance segmentation images.

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()
{

正在加载...
取消
保存