Getting started I: Setting up OpenCV on Android

In this section, we will outline the steps to set up the OpenCV library on the Android platform, which is needed to enable access to the live camera stream central to any Augmented Reality applications.

Getting ready

We assume that the Android SDK and NDK are configured exactly as discussed in Chapter 7, An Introduction to Real-time Graphics Rendering on a Mobile Platform Using OpenGL ES 3.0. Here, we add in the support of OpenCV for Android. We will import and integrate the OpenCV library into our existing code structure from the previous chapter.

How to do it...

Here, we describe the major steps for setting up the OpenCV library, mainly path setup and pre-configuration of the Java SDK project setup: ...

Get OpenGL Data Visualization Cookbook 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.