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. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access