First of all, none of the OpenCV samples work on Nexus 6 Android 5.0. After the OpenCV manager installation prompt, I get a screen that says \'Item not found, retry\'. I lat
The best workaround I saw is to update the OpenCV's AsyncServiceHelper
by yourself while they don't commit a official fix.
You just have to add one line. It's very simple.
Look for initOpenCV function and change it to be like that:
public static boolean initOpenCV(String Version, final Context AppContext,
final LoaderCallbackInterface Callback) {
AsyncServiceHelper helper = new AsyncServiceHelper(Version, AppContext,
Callback);
Intent intent = new Intent("org.opencv.engine.BIND");
intent.setPackage("org.opencv.engine");
if (AppContext.bindService(intent, helper.mServiceConnection,
Context.BIND_AUTO_CREATE)) {
return true;
} else {
AppContext.unbindService(helper.mServiceConnection);
InstallService(AppContext, Callback);
return false;
}
}
Hope to help.
I found a temporary fix for this. I debugged the 'AsyncServiceHelper' class. It is failing to obtain path at
String path = mEngineService.getLibPathByVersion(mOpenCVersion);
So, I hard coded the path string like below and my Nexus 6 is now ready to run my program which uses OpenCV
String path = "/data/data/org.opencv.engine/lib";