File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Runtime/GroundTruth/Labelers
Tests/Runtime/GroundTruthTests Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,10 @@ public class KeyPoint
165
165
/// </summary>
166
166
public float y ;
167
167
/// <summary>
168
- /// The state of the point, 0 = not present, 1 = keypoint is present
168
+ /// The state of the point,
169
+ /// 0 = not present,
170
+ /// 1 = keypoint is present but not visible,
171
+ /// 2 = keypoint is present and visible
169
172
/// </summary>
170
173
public int state ;
171
174
}
@@ -309,7 +312,7 @@ void ProcessEntity(Labeling labeledEntity)
309
312
keyPoints [ idx ] . index = idx ;
310
313
keyPoints [ idx ] . x = loc . x ;
311
314
keyPoints [ idx ] . y = loc . y ;
312
- keyPoints [ idx ] . state = 1 ;
315
+ keyPoints [ idx ] . state = 2 ;
313
316
}
314
317
315
318
cachedData . keyPoints . pose = "unset" ;
Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ public IEnumerator Keypoint_TestStaticLabeledCube()
298
298
Assert . AreEqual ( t . keypoints [ 5 ] . y , t . keypoints [ 6 ] . y ) ;
299
299
300
300
for ( var i = 0 ; i < 9 ; i ++ ) Assert . AreEqual ( i , t . keypoints [ i ] . index ) ;
301
- for ( var i = 0 ; i < 8 ; i ++ ) Assert . AreEqual ( 1 , t . keypoints [ i ] . state ) ;
301
+ for ( var i = 0 ; i < 8 ; i ++ ) Assert . AreEqual ( 2 , t . keypoints [ i ] . state ) ;
302
302
Assert . Zero ( t . keypoints [ 8 ] . state ) ;
303
303
Assert . Zero ( t . keypoints [ 8 ] . x ) ;
304
304
Assert . Zero ( t . keypoints [ 8 ] . y ) ;
You can’t perform that action at this time.
0 commit comments