如何解决如何在 ARKit 中使用我自己的遮挡 ML 模型?
ARKit 有 built-in people occlusion,你可以用类似的东西来启用它
guard let config = arView.session.configuration as? ARWorldTrackingConfiguration else {
fatalError("Unexpectedly failed to get the configuration.")
}
guard ARWorldTrackingConfiguration.supportsFrameSemantics(.personSegmentationWithDepth) else {
fatalError("People occlusion is not supported on this device.")
}
config.frameSemantics.insert(.personSegmentationWithDepth)
arView.session.run(config)
我想提供我自己的二元分割模型(每个像素的“二元”作为人/非人),大概是使用 CoreML,而不是使用 Apple 用来分割人的任何东西,因为我想遮挡其他东西而不是人。我该怎么做呢?有没有一种直接的方法可以做到这一点,还是我必须重新实现渲染管道的一部分?他们展示了一些关于如何在 this WWDC 2019 video 中使用自定义 Metal 渲染器进行人物分割的代码(大约从 9:30 开始),但我不清楚如何基于此使用我自己的模型,我更愿意使用ARKit/RealityKit 而不是实现我自己的渲染(我只是凡人)。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。