How to reduce the apk size of Android app which need openCv lib( only for Image processing)

Viewed 11423

I'm building an Android app with min SDK 15, which uses OpenCV library.The problem is when I build apk size of it is more than 60 MB which is not very great.

I checked the app file, I could see that the size is too big due to libopencv_java3.so file in all architectures like amr64, armeabi, mips, x86 etc.

enter image description here

I am using opneCv only for image processing.This library has a lot of other features like video processing, 3d image, object detection and much more, which I don't need in my app like

If I remove all those files and build APK, then size will be reduced 50 MB, but to make this app work I need to install OpenCVManager to run my app.

Is there any way by which I can reduce my apk size?

Or is it possible just to extract only the feature from OpenCV which I am interested in and create .so for those features?

2 Answers
Related