Take the 2-minute tour ×

Hello i want to ask which is the best sensor i can use for an application? my augmented reality app is using the mobiles camera and finds points of interest in the live view. i want to detect when the poi is in the field of view of my camera. I have read a lot of articles and i want to decide which option is the best. Here are my choices: 1)Compass with accelometer 2)Rotation vector

i though that the only solution is the 1) but finally i think that the 2) is more simple to create and more accurate than the first. Thanks in advance!

share|improve this question

1 Answer 1

Mostly, you need to use multiple sensors. I've written a POI app, and use the accelerometer, GPS, compass and orientation sensors to get the current device position and field of view.

You should probably start from the basics of Augmented Reality, before attempting an app like a POI one, as they are considerably complex.

Might I humbly recommend my book, Pro Android Augmented Reality?

Even if you don't get a copy, you can still pick up the source code from it's GitHub repo. Chapter 9 contains code for a POI example app that shows nearby tweets and wikipedia articles.

share|improve this answer
thanks a lot for your answer. i am gonna read this book. i have already implemented the gps and the camera preview. i am not sure that i have understand exactly what the rotation vector do but in an example that i saw it was using both the compass and orientation sensor in one. so my question is if the rotation vector can do the job of the compass and orientation. –  userX Sep 21 '12 at 17:28

Your Answer


