您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

27 行
1001 B

using System;
using System.Linq;
namespace UnityEngine.Perception.GroundTruth {
[Serializable]
public class BoundingBoxLabeler : CameraLabeler
{
public string annotationId = "F9F22E05-443F-4602-A422-EBE4EA9B55CB";
public LabelingConfiguration labelingConfiguration;
AnnotationDefinition m_BoundingBoxAnnotationDefinition;
public override void Setup()
{
var labelingMetricSpec = labelingConfiguration.GetAnnotationSpecification();
m_BoundingBoxAnnotationDefinition = SimulationManager.RegisterAnnotationDefinition("bounding box", labelingMetricSpec, "Bounding box for each labeled object visible to the sensor", id: new Guid(annotationId));
}
public override void Update()
{
//BoundingBoxAsyncMetric = SensorHandle.ReportAnnotationAsync(m_BoundingBoxAnnotationDefinition);
}
public override void OnInstanceSegmentationRead(int frameCount)
{
}
}
}