Skip to content
/ Akaze Public

Akaze matching (OpenCV) implementation in Android

Notifications You must be signed in to change notification settings

dbeqiraj/Akaze

Repository files navigation

Akaze

Feature matching with Akaze (OpenCV). Implementation in Android.

Description

This is an implentation of feature matching using Akaze from OpenCV in Android. In the documentation of OpenCV and other sources there are many examples in C++ or Python but, when it comes to Java or Android many developers face problems about how to use C++ code in Android, how to pass complex objects (here you can see how to pass a HashMap) as parameters from Java to native code and vice versa, etc.

Starting from this, I tried to bring the same output in Android.

Output

Setup

  1. Download/Clone the project
  2. Download OpenCv Android Pack from here (I have used release 3.3.0)
  3. In your android project create two folders: jniLibs and cppThirdParty in the main directory. You can use other names (most likely for cppThirdParty folder) but then you have to change the references in CMakeLists.txt and build.gradle
  4. Browse to your Android Pack folder downloaded in step 2 and copy libs content ( folders in sdk/native/libs) to the folder jniLibs
  5. Browse to your Android Pack folder downloaded in step 2 and copy include (sdk/native/jni/include) to the folder cppThirdParty. You should have this tree folder: cppThirdParty/include/[content_of_include_folder]
  6. You will need 3 file resources to successfully run the project: 2 images to compare and 1 xml file for the homography object . These files should be located under Download folder of device storage. You can change the location but then, you will have also to change the references in MainActivity.java. You can find the resources here
  7. Now, if you have followed all these steps you should be able to successfully build and run the App

About

Akaze matching (OpenCV) implementation in Android

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages