DanijelHuis / HDAugmentedReality

Augmented Reality component for iOS, written in Swift.
MIT License
480 stars 97 forks source link

POI position accuracy #88

Open mikesabino opened 3 years ago

mikesabino commented 3 years ago

https://user-images.githubusercontent.com/3402340/103732411-59158b80-4ff8-11eb-8f41-8fcabfc2576c.mp4

Hi we are using this library for a POC, our use case is that users can walk around a park and be able to use AR to identify trees that are placed all around. Each tree has its own lat and long values.

The problem I'm having is that when I close to a POI, I mean within a 10 meter radius I see a significant deviation of the annotation position from the actual POI position.

In the attached video, the POI is the tree (Tree 1) in front of me, I'm about 3 or 4 meters away and the annotation is way to the right. The next POI is the next tree seen behind Tree 1 about 20 meters away, the annotation for it is also way off to the right.

I've tested the coordinates on google maps and they point right at where the trees are if I plot them there, google maps screenshot: https://imgur.com/a/AoCb0ei

Any ideas how to improve the accuracy of these?

DanijelHuis commented 3 years ago

Hi,

I never tested this library with so small targets, I tested it mainly on buildings. You should probably be using some library that uses ARKit since that offers much better precision, e.g.: https://github.com/ProjectDent/ARKit-CoreLocation

There are multiple possible reasons why POI markers are not on right position:

*GNSS = Global Navigation Satelity System

You will have to put logs/breakpoints and find the cause of the problem.

mikesabino commented 3 years ago

Thanks for your response, I'll look at that library aswell as the compass readings itself.