我对指南针和指南针功能的理解是? AR 应用程序中的 GPS 正确吗?
在 AR 应用程序中,您可以在相机视图中注释对象或建筑物,我想了解手机(iPhone/Android)上不同硬件位在实现 AR 效果方面所发挥的作用。请详细说明以下内容:
- 相机:提供现实的 2D 视图。
- GPS:提供设备的经度、纬度。
- 指南针:相对于磁北的方向。
- 加速计:(它有作用吗?)
- 高度计:(它有作用吗?)
示例:如果相机视图显示纽约天际线,上面列出的硬件中的信息如何帮助我注释视图?假设我有经度和克莱斯勒大楼的纬度并且在我的相机视图中可见,如何准确计算在 2D 图片上注释名称的位置?我知道给定两对(经度,纬度),您可以计算点之间的距离。
In an AR app whereby you annotate objects or buildings in a camera view, I want to understand the role, that different hardware bits - on the phone (iPhone/Android) - play to achieve the AR effect. Please elaborate more on the following:
- Camera: provides the 2D view of reality.
- GPS: provides the longitude,latitude of the device.
- Compass: direction with respect to magnetic north.
- Accelerometer: (does it have a role?)
- Altimeter: (does it have a role?)
An example: if the camera view is showing the New York skyline, how does the information from the hardware listed above help me to annotate the view ? Assuming I have the longitude & latitude for the Chrysler building and it is visible in my camera view, how does one calculate with accuracy where to annotate the name on the 2D picture ? I know that given 2 pairs of (longitude,latitude), you can calculate the distance between the points.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我将把从设备计算所有这些数据的细节留给您作为练习。 :-)
I will leave the details of calculating all this data from the devices as an exercise to you. :-)