Steve Borkman
4 年前
当前提交
f12d414e
共有 8 个文件被更改,包括 58 次插入 和 39 次删除
-
6com.unity.perception/Runtime/GroundTruth/DatasetCapture.cs
-
17com.unity.perception/Runtime/GroundTruth/Exporters/Coco/CocoExporter.cs
-
17com.unity.perception/Runtime/GroundTruth/Exporters/PerceptionFormat/PerceptionExporter.cs
-
2com.unity.perception/Runtime/GroundTruth/Exporters/DatasetExporter.cs.meta
-
2com.unity.perception/Runtime/GroundTruth/PerceptionCamera.cs
-
35com.unity.perception/Runtime/GroundTruth/Exporters/DatasetExporter.cs
-
18com.unity.perception/Runtime/GroundTruth/Exporters/IDatasetReporter.cs
-
0/com.unity.perception/Runtime/GroundTruth/Exporters/DatasetExporter.cs.meta
|
|||
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); |
|||
} |
|||
} |
|
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace UnityEngine.Perception.GroundTruth.Exporters |
|||
{ |
|||
public interface IDatasetReporter |
|||
{ |
|||
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); |
|||
} |
|||
} |
撰写
预览
正在加载...
取消
保存
Reference in new issue