Steve Borkman
3 年前
当前提交
6f30a796
共有 8 个文件被更改,包括 88 次插入 和 88 次删除
-
34com.unity.perception/Editor/GroundTruth/PerceptionCameraEditor.cs
-
62com.unity.perception/Runtime/GroundTruth/Exporters/Coco/CocoExporter.cs
-
17com.unity.perception/Runtime/GroundTruth/Exporters/PerceptionFormat/PerceptionExporter.cs
-
2com.unity.perception/Runtime/GroundTruth/Exporters/IDatasetExporter.cs.meta
-
8com.unity.perception/Runtime/GroundTruth/SimulationState.cs
-
18com.unity.perception/Runtime/GroundTruth/Exporters/IDatasetExporter.cs
-
35com.unity.perception/Runtime/GroundTruth/Exporters/DatasetExporter.cs
-
0/com.unity.perception/Runtime/GroundTruth/Exporters/IDatasetExporter.cs.meta
|
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace UnityEngine.Perception.GroundTruth.Exporters |
|||
{ |
|||
public interface IDatasetExporter |
|||
{ |
|||
public void OnSimulationBegin(string directoryName); |
|||
public void OnSimulationEnd(); |
|||
|
|||
public void OnAnnotationRegistered<TSpec>(Guid annotationId, TSpec[] values); |
|||
|
|||
public Task ProcessPendingCaptures(List<SimulationState.PendingCapture> pendingCaptures, SimulationState simState); |
|||
|
|||
public Task OnCaptureReported(int frame, int width, int height, string filename); |
|||
} |
|||
} |
|
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace UnityEngine.Perception.GroundTruth.Exporters |
|||
{ |
|||
public abstract class DatasetExporter : MonoBehaviour |
|||
{ |
|||
public void Reset() |
|||
{ |
|||
SimulationState.RegisterExporter(this); |
|||
} |
|||
|
|||
public void OnEnable() |
|||
{ |
|||
SimulationState.RegisterExporter(this); |
|||
} |
|||
|
|||
public void OnDisable() |
|||
{ |
|||
SimulationState.DeregisterExporter(this); |
|||
} |
|||
|
|||
public abstract string GetName(); |
|||
|
|||
public abstract void OnSimulationBegin(string directoryName); |
|||
public abstract void OnSimulationEnd(); |
|||
|
|||
public abstract void OnAnnotationRegistered<TSpec>(Guid annotationId, TSpec[] values); |
|||
|
|||
public abstract Task ProcessPendingCaptures(List<SimulationState.PendingCapture> pendingCaptures, SimulationState simState); |
|||
|
|||
public abstract Task OnCaptureReported(int frame, int width, int height, string filename); |
|||
} |
|||
} |
撰写
预览
正在加载...
取消
保存
Reference in new issue