-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
tessedit_ocr_engine_mode in recognize options does not work #808
Comments
I do not believe this behavior itself is a bug, as the Tesseract source code indicates that the Line 68 in 4a63a8e
|
I removed the misleading option, so there should no longer be any indication that |
@Balearica thanks! ideally, trying to set init_only args after initialization should raise a warning or an exception instead of silently failing. |
I think a warning could be helpful. I would not want to throw an exception since I do not think this is worth breaking existing code over--other users likely have this option set under the mistaken belief that it does something. |
I added a warning message when users attempt to use |
in version 4.1.1, setting tessedit_ocr_engine_mode in recognize options does not work, and you must set it in worker initialize
does not work:
r = await Tesseract.recognize(im, 'eng', {tessedit_ocr_engine_mode: 0})
works:
The text was updated successfully, but these errors were encountered: