Could not initialize Tesseract API with language=eng for tess-two API

2.5k Views Asked by At

I'm trying to implement the tess-two api for my Android application and I'm getting this error no matter how I try to fix it:

E/Tesseract(native): Could not initialize Tesseract API with language=eng!

I do have WRITE_EXTERNAL_STORAGE permission in the Manifest.

Also in TessBaseAPI.java file in the tess-two library, all the native functions shows

Cannot resolve corresponding JNI function Java_com_googlecode_tesseract_android_TessBaseAPI_nativeClass

How should I go about fixing this?

1

There are 1 best solutions below

0
On

If you're targeting Android API level 23 (Android 6.0), you need to get user permission to access external storage.