OpenCV for Android, do I need to install OpenCV Manager separately?

后端 未结 2 580
小蘑菇
小蘑菇 2020-12-16 15:48

Just started looking into OpenCV for Android. I noticed that I need to install something called OpenCV Manager before I can run the apps that use it.

Is there any wa

相关标签:
2条回答
  • 2020-12-16 16:08

    You are looking for the static initialization method.

    See the documentation here.

    Also you can check this thread:

    Static Initialization on OpenCV Android

    0 讨论(0)
  • 2020-12-16 16:17

    I found this answer to be extremely helpful:

    https://stackoverflow.com/a/40018413/6030520

    You have to make sure that your OpenCV is fully functional before doing this (in other words, make sure you can build a project without errors, etc.). Also, make sure that in the settings.gradle file, you include this line of code:

    include ':openCVLibrary330'
    

    (Whatever is between the single quotes depends on the name of the openCVLibrary folder you imported. i.e. If the folder was named openCVLibrary320, then you'd enter:

    include ':openCVLibrary320' 
    

    instead. The folder name is dependent on the version of OpenCV you are using.)

    0 讨论(0)
提交回复
热议问题