Skip to content

Commit ee2addb

Browse files
Make GetAnnotationSpecification() public, by popular demand. (#335)
* Make GetAnnotationSpecification() public, by popular demand. * Updating changelog
1 parent 386af60 commit ee2addb

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

com.unity.perception/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ Added the ability to adjust keypoint self occlusion tolerance on a user defined
5757

5858
Added a Keypoint Occlusion Override component which allows a user to universally scale all of the keypoint tolerances for a model.
5959

60+
Make IdLabelConfig.GetAnnotationSpecification() public.
61+
6062
### Changed
6163

6264
Increased color variety in instance segmentation images.

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,11 @@ void OnDisable()
7272
m_LabelEntryMatchCache = null;
7373
}
7474

75+
/// <summary>
76+
/// A structure representing a label entry for writing out to datasets.
77+
/// </summary>
7578
[SuppressMessage("ReSharper", "InconsistentNaming")]
76-
internal struct LabelEntrySpec
79+
public struct LabelEntrySpec
7780
{
7881
/// <summary>
7982
/// The label id prepared for reporting in the annotation
@@ -87,7 +90,10 @@ internal struct LabelEntrySpec
8790
public string label_name;
8891
}
8992

90-
internal LabelEntrySpec[] GetAnnotationSpecification()
93+
/// <summary>
94+
/// Returns the label entries as structures suited for writing out to JSON datasets.
95+
/// </summary>
96+
public LabelEntrySpec[] GetAnnotationSpecification()
9197
{
9298
return labelEntries.Select((l) => new LabelEntrySpec()
9399
{

0 commit comments

Comments
 (0)