浏览代码

Update InstanceSegmentationLabeler.cs

/main
Mohsen Kamalzadeh 4 年前
当前提交
ef5641e3
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. 9
      com.unity.perception/Runtime/GroundTruth/Labelers/InstanceSegmentationLabeler.cs

9
com.unity.perception/Runtime/GroundTruth/Labelers/InstanceSegmentationLabeler.cs


}
}
void OnImageCaptured(int frame, NativeArray<Color32> data, RenderTexture renderTexture)
void OnImageCaptured(int frameCount, NativeArray<Color32> data, RenderTexture renderTexture)
if (!m_AsyncAnnotations.ContainsKey(frameCount))
return;
m_InstancePath = $"{k_Directory}/{k_FilePrefix}{frame}.png";
var localPath = $"{Manager.Instance.GetDirectoryFor(k_Directory)}/{k_FilePrefix}{frame}.png";
m_InstancePath = $"{k_Directory}/{k_FilePrefix}{frameCount}.png";
var localPath = $"{Manager.Instance.GetDirectoryFor(k_Directory)}/{k_FilePrefix}{frameCount}.png";
var colors = new NativeArray<Color32>(data, Allocator.TempJob);

正在加载...
取消
保存