Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tesseract branch: App crashes on using RNTextDetector.detect #23

Open
IElgohary opened this issue Jul 12, 2019 · 4 comments
Open

Tesseract branch: App crashes on using RNTextDetector.detect #23

IElgohary opened this issue Jul 12, 2019 · 4 comments

Comments

@IElgohary
Copy link

I'm trying the tesseract branch on android using the example given in the Readme but the app crashes as soon as the detect method is called. The app crashes without giving any error message and running 'react-native log-android' shows nothing either.

@ghost
Copy link

ghost commented Sep 15, 2019

I'm having the same issue; seems to have something to do with accessing the tessdata files. You can see the native crash messages by running in Android Studio.

E/RNTextDetector: ERROR: Creation of directory /storage/emulated/0/com.myapp/tessdata failed, check permission to write to external storage.
E/RNTextDetector: Unable to copy files to tessdata java.io.FileNotFoundException: /storage/emulated/0/com.myapp/tessdata/eng.traineddata: open failed: ENOENT (No such file or directory)

I do have the file at android/app/src/main/assets/tessdata/eng.traineddata as per the README, hm...

@andreasjpunkt
Copy link

In Android Folder, open AndroidManifest file and add android:requestLegacyExternalStorage

<manifest ... >
<application android:requestLegacyExternalStorage="true" ... >

@mohity777
Copy link

Did you guys get any solution? ? i am facing same issue. @ajemkuhnabat i tried your solution but did not work.

@thanhluantl2304
Copy link

Any update on this? I am still facing this problem too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants