Reducing Android package
i only want to use
Mat m1 = new Mat();
Imgproc.blur(m, m1, new Size(s, s));
Utils.matToBitmap(m1, b);
but the SO file unexpectedly 20+M how to lower OpenCV SO?
thanks.
i only want to use
Mat m1 = new Mat();
Imgproc.blur(m, m1, new Size(s, s));
Utils.matToBitmap(m1, b);
but the SO file unexpectedly 20+M how to lower OpenCV SO?
thanks.
Probably you are including the complete openCV library folder containing the dll's with your so file. In order to reduce the size you should only include the dlls necessary, in this case the core dll and the imageprocessing dll.
Did you try to use OpenCV Manager (http://docs.opencv.org/android/service/doc/index.html)? It allows you to reduce .apk size.
If you need small APK - the only choice is the OpenCV Manager.
If you can't use OpenCV Manager
you need to keep libnative_camera_*.so
(for VideoCapture
class) and libopencv_java.so
(for the rest of API) for all supported platforms.
Asked: 2013-04-24 00:04:27 -0600
Seen: 2,787 times
Last updated: Apr 24 '13
build problems for android_binary_package - Eclipse Indigo, Ubuntu 12.04
Installing Sample App / OpenCV Manager
OpenCV-2.4.2-android-sdk missing build.xml?
OpenCV libs on Real Android Device
Unresolved inclusions in OpenCV android tutorial 4.
build openCV for android, without CUDA
OpenCV Tutorial 1 - Add OpenCV on API 8
Is OpenCV_2.4.2_binary_pack_armv7a source code open
How to get good matches from the ORB feature detection algorithm?
How to decrease the number of processed frames from a live video camera?