OpenCV in Android Studio

前端 未结 8 1689
独厮守ぢ
独厮守ぢ 2020-11-22 02:43

I want to use OpenCV library in my app with Android Studio. I followed instructions found here but I get error

Configuration with name \'default\' no

8条回答
  •  轮回少年
    2020-11-22 02:57

    This worked for me and was as easy as adding a gradle dependancy:

    https://bintray.com/seesaa/maven/opencv#

    https://github.com/seesaa/opencv-android

    The one caveat being that I had to use a hardware debugging device as arm emulators were running too slow for me (as AVD Manager says they will), and, as described at the repo README, this version does not include x86 or x86_64 support.

    It seems to build and the suggested test:

    static {
        OpenCVLoader.initDebug();
    }
    

    spits out a bunch of output that looks about right to me.

提交回复
热议问题