Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
@Override
public void onResume() {
super.onResume();
OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_11, this, mLoaderCallback);
}
private BaseLoaderCallback mLoaderCallback = new BaseLoaderCallback(this) {
@Override
public void onManagerConnected(int status) {
switch (status) {
case LoaderCallbackInterface.SUCCESS:
{
Log.i("opencv", "opencv success");
} break;
default:
{
super.onManagerConnected(status);
} break;
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment