Ask Your Question
0

how to avoid intalling Manager in the face-detection app?

asked 2013-10-29 11:24:59 -0600

Zeo gravatar image

I can read the tutorial "Application Development with Static Initialization",but I find it hard to make the face-detection demo app into an app that runs without the installation of opencv manager?

Where can I get a version of no opencv manager or how can I change the face-detection app into no opencv manager version?

Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-11-14 21:42:48 -0600

Zeo gravatar image

I solved it by commenting the OpenCVLoader.initAsyn() and using OpenCVLoader.initDebug(), and then move the used code in loaderCallback method under the OpenCVLoader.initDebug().

The code will be like below:

    // TODO Auto-generated method stub
    //OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_6, this,
    //      mLoaderCallback);
    if(OpenCVLoader.initDebug()){
    //code from mLoaderCallbak
    System.loadLibrary("lib");
    //other thing you want to do
    }

also you need to add something in the Android.mk .Seek for detail in the tutorial "Application Development with Static Initialization",

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-10-29 11:24:59 -0600

Seen: 3,097 times

Last updated: Nov 14 '13