I am using OpenCV for Android in my app using static initialization. The code to initialize is -
static {
if(!OpenCVLoader.initDebug()) {
Log.d("My App", "Unable to load OpenCV");
} else {
Log.d("My App", "OpenCV loaded");
}
}
Well this works fine. But in the OpenCV documentation it is specified that initDebug() is deprecated -
Note This method is deprecated for production code. It is designed for experimental and local development purposes only. If you want to publish your app use approach with async initialization.
Now if I use async initialization, it uses OpenCV manager app which should be installed on the device. This is not what I want.
My question is - If initDebug() is deprecated to use in release mode, is there any other way to load openCV which does not use OpenCV Manager? Or is it safe to load OpenCV using initDebug()?
from Android Opencv static initialization
No comments:
Post a Comment