Ask Your Question
0

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

asked Oct 29 '13

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

Preview: (hide)

1 answer

Sort by » oldest newest most voted
1

answered Nov 15 '13

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",

Preview: (hide)

Question Tools

Stats

Asked: Oct 29 '13

Seen: 3,212 times

Last updated: Nov 14 '13