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

getText() fails with extracting text #1

Open
codingforpleasure opened this issue Jul 1, 2018 · 0 comments
Open

getText() fails with extracting text #1

codingforpleasure opened this issue Jul 1, 2018 · 0 comments

Comments

@codingforpleasure
Copy link

codingforpleasure commented Jul 1, 2018

I'm running a clone of your nice repo :) on my device, and have tested it.
it seems the OCR fails ( jumbled characters) each time, even when I take a crystal clear photos of English text titles with my smartphone.

I have tried using:

dependencies {
...
implementation 'com.rmtheis:tess-two:5.4.1'
...
}

and

dependencies {
...
implementation 'com.rmtheis:tess-two:9.0.0'
...
}

But still i get a miss :/, any suggestions how to fix this issue?
How come in the startOCR() function, you have decided to inSampleSize by 6?

options.inJustDecodeBounds = false;
options.inSampleSize = 6;

Thank you very much!

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

1 participant