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.
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.
We assume that you have downloaded the latest OpenCV for Android from http://opencv.org/downloads.html. At the time of writing, we now have OpenCV for Android 3.0.0.
Let's extract the downloaded file to your favorite path, for example,
Then, we need to open a new Android Studio window and...