Skip to content

[FIXED] Help needed side loading trained data? #32

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

Open
older-pack opened this issue May 24, 2021 · 5 comments
Open

[FIXED] Help needed side loading trained data? #32

older-pack opened this issue May 24, 2021 · 5 comments
Labels

Comments

@older-pack
Copy link

Hi, internet access doesn't work on my device. So I can't directly download the trained data. But I can side load data.

I've read #29 and I can the see data goes in /storage/emulated/0/Android/data/io.github.subhamtyagi.ocr/files/best

As an example, I've downloaded the "Fast" english data from here
https://github.com/tesseract-ocr/tessdata_fast/blob/master/eng.traineddata

And I copied that eng.traineddata to /storage/emulated/0/Android/data/io.github.subhamtyagi.ocr/files/fast
But the app still doesn't see it!

Am I doing it correctly?
I noticed another directory called .../fast/tesstata
Should I put something in there too?

Any help on side loading would be much appreciated.
Thanks

@SubhamTyagi
Copy link
Owner

Choose data type as "fast" in setting also.

@older-pack
Copy link
Author

Thanks for the reply. I have selected "Fast" in the settings but the screen just stays black and a message "You are not connected to the internet" appears.
I tried rebooting the device too, but it didn't help.

I'm definitely not a developer, but I have got adb installed. I don't suppose I could use it to do anything extra that might help?

@SubhamTyagi
Copy link
Owner

for convenience I will provide a option in Setting to locate previously downloaded training data.

@older-pack
Copy link
Author

Thank you. That's great news. I really appreciate it 😄 👍

@older-pack
Copy link
Author

older-pack commented Feb 3, 2022

Hi I'd just like to report back that I managed to get this working.

Firstly I updated to the latest 3.0 version but I don't think that was the main fix.

I think the actual fix was simply to move the eng.traineddata into the sub-folder .../fast/tesstata that I mentioned in my first post.

Then I opened the OCR app. The app screen was all black as before. I didn't think it was working. But I hit the red icon in the bottom corner.
This time instead of trying to go online to get the traineddata it asked what source to use (choice of two camera apps or file manager)

Once it had an image I could crop it. And presto it OCRed it very quickly.

This is just great. Very impressed. And all done offline. 👍 👍 👍

I don't know why I didn't try the tessdata sub-directory before... 🙄 😊 🥴

So to summaries how I side loaded the traineddata:

Very easy.

Thanks for the great app. 😃 👍 🍦

@older-pack older-pack changed the title Help needed side loading trained data? [FIXED] Help needed side loading trained data? Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants