Chapter    3

Adding Overlays

As mentioned before, augmented reality (AR) is the overlaying of data that is related to the direct or indirect camera preview being displayed. In the majority of AR apps, the camera preview is first scanned for markers. In the translator kind of apps, the preview is scanned for text. And in some gaming apps, no scanning is done; instead, characters, buttons, text, and so on are overlaid on the preview.

All the source code from this chapter can be downloaded from this book’s page at http://www.apress.com or the GitHub repository.

In Chapter 2, we made a basic app that displayed the device camera’s preview, retrieved the location via GPS, got the accelerometer readings, and retrieved the orientation sensor readings. ...

Get Pro Android Augmented Reality now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.