castoryan / ORB-SLAM-Android

114 stars 58 forks source link

OpenCV Manager package was not found! Try to install it? #8

Closed notheorem closed 7 years ago

notheorem commented 7 years ago

Thanks for the great work you've done.

And I met some problem with it : After build & run app on device, "OpenCV Manager package was not found! Try to install it?" persists - even though I've installed "OpenCV Manager" from app store. I think there's some mistake or I missed some thing? Could you please give some advice ?

I'll follow this project in future, hope to make some thing with map data

castoryan commented 7 years ago

yes you should install the opencv first

notheorem commented 7 years ago

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;
}
// if (AppContext.bindService(new Intent("org.opencv.engine.BIND"),
// helper.mServiceConnection, Context.BIND_AUTO_CREATE))
// {
// return true;
// }

notheorem commented 7 years ago

for fixing the java.lang.IllegalArgumentException: Service Intent must be explicit: Intent I've made a wrong package name

castoryan commented 7 years ago

so is it working now?

notheorem commented 7 years ago

Yes it works

ShreyashPromact commented 4 years ago

@notheorem What should be the package name?