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's parameterizable thresholding method to prevent unrecognized text on bright background colors #40

Open
Gabrusp opened this issue Aug 24, 2023 · 0 comments

Comments

@Gabrusp
Copy link

Gabrusp commented Aug 24, 2023

I had problems recognizing text on bright background colors and I found the solution in the thread below:

tesseract-ocr/tesseract#1990

I'm not from the programming area and to solve my problem, I changed the line below in the file C:\Users\xxxxx\AppData\Roaming\Anki2\addons21\450181164_vendor\pytesseract.pytesseract.py , but I believe that a parameterizable and more professional solution is possible.

cmd_args += (tesseract_cmd, input_filename, output_filename_base, '-c', 'thresholding_method=2')

Thanks again for this amazing addon.
Hugs,
Gabriel

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