Ask Your Question

Dimitar Dobrev's profile - activity

2014-05-28 08:10:44 -0500 received badge  Student (source)
2014-05-28 05:35:25 -0500 asked a question Deploy just imgproc - OpenCV4Android

Hello all,

I use imgproc in an Android application. Because libopencv_java.so is too large - 17 MB - I want to include only imgproc (and core, of course) and leave the rest of the modules out. Here's what I've tried so far:

  1. Building OpenCV frm source according to http://code.opencv.org/projects/opencv/wiki/Building_OpenCV4Android_from_trunk - that failed with some strange CMake error about endianness;
  2. Using OpenCVManager - it works but I don't want to use it;
  3. Using JavaCV (https://github.com/bytedeco) where the modules are separate - for some strange reason it's about 4 to 5 times slower than OpenCV for Android;
  4. Compile a custom libopencv_java.so from the .a files in the binary download - this has been my most successful approach because I've been able to construct a binary. However, something with the exported symbols is not quite alright because I get this:

No implementation found for native Lorg/opencv/core/Core;.getBuildInformation_0:()Ljava/lang/String;

while loading the library. I can provide my Android.mk and Application.mk at a request.

Could you please help?