OpenCV standalone opencv installer

I am working on an OpenCV application, and it works great, but when I try to install the application, it asks to download the OpenCV manager and which I don’t want. I want to create a standalone installer for an OpenCV application that includes the OpenCV inbuit manager? I checked this link , but still a popup for installing opencv appears?

+4
source share
2 answers

in my experience you might just need to complete these 2 (or 3) steps:

1. replace the lib loading code in java as follows:

static {
  Log.i(TAG,"OpenCV library load!");
  if (!OpenCVLoader.initDebug()) {
    Log.i(TAG,"OpenCV load not successfully");
  }
  else {
    System.loadLibrary("opencv_java");// load other libraries
  }
}

2.delete this code in java:

OpenCVLoader.initAsync(OpenCVLoader.OpenCV_VERSION_2_4_3, this, mLoaderCallback);

3. ndk , , Android.mk :

OpenCV_CAMERA_MODULES:=on
OpenCV_INSTALL_MODULES:=on
OpenCV_LIB_TYPE:=SHARED
+2

sdk/native/libs SDK OpenCV /src/main. .

enter image description here

-2

All Articles