I developed an application for computer vision algorithms that uses the Native C++ library, such as OpenCV , to capture the camera frame and process images. My whole implementation is in a native function called by an action.
Say:
public native int MYMETHOD(int width, int height,int[] rgba);
I also load my library as follows:
static { System.loadLibrary("MYNativeLIB"); }
Now my question is how can I deploy my application as a library package. Something is supplied that I can share it, and clients can import it into their project without installing any other libraries such as OpenCV . Do I need to build a .so package? I read this article . But I do not know how I can link to the OpenCV . Thank you for your help.
android opencv native shared-libraries static-libraries
Hamid bazargani
source share