O'Reilly logo

OpenCV 3 Blueprints by Utkarsh Sinha, Quan Hua, Steven Puttemans, Joseph Howse

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Integrating OpenCV into the Android Studio

In this section, we will show you the steps to integrate OpenCV in the Android Studio with the Native Development Kit and use the OpenCV stitching module in C++ to create the final panorama image. We will also do some computations with OpenCV Android SDK Java to show how the interaction goes about between Java and C++ interfaces.

Compiling OpenCV Android SDK to the Android Studio project

Officially, the OpenCV Android SDK is an Eclipse project, which means we can't simply use it in our Android Studio project. We need to convert the OpenCV Android SDK to an Android Studio project and import it as a module to our application.

Note

We assume that you have downloaded the latest OpenCV for Android from http://opencv.org/downloads.html ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required