如何建立增强现实飞机雷达应用程序?

时间:2021-12-08 20:16:07

I like to build an augmented reality app (iOS or Android) that allows to point the phone at the sky and label the airplanes in the air (overlay). I've got the planes' coordinates and altitude, and I know the phone's GPS position, including altitude and camera direction (based on magnetometer and gyroscope). I don't want to render any 3D stuff nor do I care about buildings or hills that are in the line of sight, so the task is "only" to draw the labels at the right position as overlay on the camera image.

我喜欢构建一个增强现实应用程序(iOS或Android),它允许将手机指向天空并在空中标记飞机(叠加)。我有飞机的坐标和高度,我知道手机的GPS位置,包括高度和摄像机方向(基于磁力计和陀螺仪)。我不想渲染任何3D东西,也不关心视线内的建筑物或山丘,因此任务“仅”将标签绘制在相应位置作为相机图像上的叠加。

I know about SDKs like Wikitude that might do the trick but I wonder how complex the above task is to do by hand? Coordinate transformation might be one thing, the other challenge might be to camera characteristics (focal length?) of all potential phone models... Are there any OS libraries that help here?

我知道像Wikitude这样的SDK可以做到这一点,但我想知道上面的任务是多么复杂的手工操作?协调转换可能是一回事,另一个挑战可能是所有潜在手机型号的相机特性(焦距?)......是否有任何操作系统库可以提供帮助?

1 个解决方案

#1


0  

Given that you are locating planes in the air, you can safely ignore the focal length and other camera properties and issues because the distance to the plane will always be so much plane will always be will always be so much further than the focal length.

鉴于您正在空中定位飞机,您可以放心地忽略焦距和其他摄像机属性和问题,因为到飞机的距离总是如此之多,飞机总是会比焦距更远。

For actually detecting the plane, most AR SDKs aren't well suited to the task. I'd start by using OpenCV to blur the image and then detect a circle. If you have a blue sky with an airplane in the background that will work ok for a first pass

为了实际检测飞机,大多数AR SDK不适合该任务。我首先使用OpenCV来模糊图像,然后检测一个圆圈。如果你有一个蓝天,后面有一架飞机可以在第一次通过时正常工作

#1


0  

Given that you are locating planes in the air, you can safely ignore the focal length and other camera properties and issues because the distance to the plane will always be so much plane will always be will always be so much further than the focal length.

鉴于您正在空中定位飞机,您可以放心地忽略焦距和其他摄像机属性和问题,因为到飞机的距离总是如此之多,飞机总是会比焦距更远。

For actually detecting the plane, most AR SDKs aren't well suited to the task. I'd start by using OpenCV to blur the image and then detect a circle. If you have a blue sky with an airplane in the background that will work ok for a first pass

为了实际检测飞机,大多数AR SDK不适合该任务。我首先使用OpenCV来模糊图像,然后检测一个圆圈。如果你有一个蓝天,后面有一架飞机可以在第一次通过时正常工作