You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.
--load_system_dawg 0 would be helpful as an argument in image_to_text, perhaps as an options dictionary. Feel free to call it something that makes it language agnostic
The text was updated successfully, but these errors were encountered:
You can simply create a builder object yourself. You can have a look at https://github.com/jflesch/pyocr/blob/master/src/pyocr/tesseract.py#L57 for an example. Basically you just need to inherit from BaseBuilder and define tess_conf = ["--load_system_dawg", "0"], file_ext = ['the_file_extension_that_tesseract_will_use'], and the methods read_file() and write_file().
If you implement such builder, feel free to send a pull request to include it in src/pyocr/tesseract.py.
I implemented a similar builder here, if it's helpful. In my case, I needed a modification to WordBoxBuilder with dictionary-related parameters set to false.
This is a work in progress, since I may modify the parameters further - once it's complete, I'm happy to submit the builder as a pull request.
--load_system_dawg 0 would be helpful as an argument in image_to_text, perhaps as an options dictionary. Feel free to call it something that makes it language agnostic
The text was updated successfully, but these errors were encountered: