Android UnsatisfiedLinkError with OpenCV 2.4.2

后端 未结 3 810
星月不相逢
星月不相逢 2020-12-08 22:48

just trying to do a simple openCV android program. Downloaded and installed OpenCV for Android following the instructions here and added the OpenCV Library 2.4.2 as a librar

3条回答
  •  感情败类
    2020-12-08 23:29

    The solution is to either do like in @Jason answer which is about using the OpenCV Manager. It is also explained in great detail on the official documentation here.

    But like @Jason says, "Makes it so the user has to install severally packages manually before the app will work". Although this is true, OpenCV Manager has some advantages like for example:

    • If OpenCV is updated, the user only needs to update the manager/library. The applications which use the manager can remain the same.

    • Your app apk size will be a lot smaller:

      • A simple opencv app will be about ~400KB for each app + ~800KB for OpenCV Manager + ~12MB for the OpenCV library compiled for your device architecture.
      • With the traditional static linking every single opencv app in your device would be at least ~25MB.
      • These sizes depend, off course, on the amount of stuff you place inside your app ...

    Even so, if you wish to deploy your apps the traditional way, static linking, you can read the instructions here.

提交回复
热议问题