Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Looking for a recent guide to build Opencv4Android.

I am developing a mobile application and plans to use native OpenCV library by jni approach. Reference this tutorial as my environment:

https://android.jlelse.eu/a-beginners-guide-to-setting-up-opencv-android-library-on-android-studio-19794e220f3c

To use some recent opencv_contrib modules such as GMS, and for optimize APK size, I have to build opencv myself and use the tutorial from OpenCV official github:

https://github.com/opencv/opencv/wiki/Building_OpenCV4Android_from_trunk

The problem is that this wiki is from 2016 and I can't use it.

The script cmake_android_arm.sh, inside platform/scripts folder, no longer exist from opencv 3.2.0 (2016). I can't find any official or unofficial updated guide.