Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

Is static initialization of Opencv LIbraries possible in Android Studio for production purposes..?

$
0
0
Hii all.. Im working on a face recognition android app which uses opencv library 2.4.9 devoloped in Android Studio-2.1.1. I would like to know static initialization of Opencv setup in Android studio not in eclipse i Already tried the following code but none of it is working.. Copy all the library's files. Or simply install the manager within the app like: Intent promptInstall = new Intent(Intent.ACTION_VIEW) .setDataAndType(Uri.parse("file:///path/to/org.opencv.engine.v2.14.apk"), "application/vnd.android.package-archive"); startActivity(promptInstall); add this permission: the above code shows a error in Manifest.xml.. so if knows plse help me.... Second One Add down vote Add mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS); after `mOpenCvCameraView.setCvCameraViewListener(this);` in onCreate() and `remove OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_6, this, mLoaderCallback);` from onResume() If everything else is correctly done, this should not ask for OpenCV Manager. EDIT : it will be better if you put below code inside onResume method of your Activity mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS); this is also not doing the job so help me

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>