使用 iOS 深度相机测量两点之间的实际距离
现在我正在探索 iOS 深度相机
的功能,现在我想获取两点之间(例如,两只眼睛之间)的真实世界度量距离。
我已成功连接 iOS 深度相机
功能,并且手中有 AVDepthData
,但我不太确定如何获得两个特定点之间的真实距离。
我相信如果我有深度和视角,我可以计算它,但我没有看到后者作为参数呈现。我也知道这个任务可以用 ARKit 来处理,但我真的很好奇我自己如何实现它。我的意思是 ARKit
也使用深度相机,因此必须有一种算法,其中深度图就是我计算真实距离所需的全部,
您能给我一个如何解决此任务的建议吗?提前致谢!
Right now I'm exploring features of iOS Depth camera
and now I want to obtain the distance in real-world metrics between two points (for example, between two eyes).
I have successfully connected iOS Depth camera
functionality and I have AVDepthData
in my hands but I'm not quite sure how I can get a real-world distance between two specific points.
I believe I could calculate it if I have depth and viewing angle, but I don't see that the latter is presented as parameter. Also I know that this task could be handled with ARKit
, but I'm really curious how I can implement it myself. I mean ARKit
uses Depth camera as well, so there must be an algorithm where Depth maps is all I need to calculate the real distance
Could you please give me an advice how to tackle this task? Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论