Android Unsatisfiedlinkerror With Tesseract And Opencv
I have been trying to get OpenCV and the android version of tesseract (tess-two) to work with my android app. I am developing in Android Studio 1.4, the problem is that if I add th
Solution 1:
Okay so I finally figured it out. The OpenCV library had a folder named "arm64-v8a" inside the native libs folder and the tess-two library does not contain such a folder. This is a problem because the "arm64-v8a" folder will make the app run in 64 bit mode when there is no 64 bit library available for tesseract for android (tess-two), thus throwing the crash shown in the question.
To fix this, I simply excluded the "arm64-v8a" folder.
Inside your app build.gradle and inside defaultConfig add:
packagingOptions {
exclude "lib/arm64-v8a/FILE_NAME.SO"
}
Now where it says FILE_NAME.so, replace that with the file name of one of the files inside your OpenCV "arm64-v8" folder. Add the exclude line as many times as required to exclude all files inside the arm64-v8 folder.
Post a Comment for "Android Unsatisfiedlinkerror With Tesseract And Opencv"