Closed davidnaumann-bastian closed 2 years ago
I'm not really sure about that -- the initial idea of pytesseract
was to reuse the tesseract
config.
This avoids maintenance cost for updating any such mappings in the future if tesseract codebase changes.
Yes, we can add such feature, but in general it will be better if the users create such mappings for themselves. The Enum use case is pretty elegant, but will change the behavior for a lot of current users (unless we go through a deprecation route, which requires even more code for handling the old way).
Plus, the owner of this project seems to be busy with other things in life, so at the moment it is hard to even update the package.
Instead of having this set via the config should this be an option that is set in the parameters of the pytesseract command as a sort of Enum variable?
Link to PSM documentation Tesseract documentation for PSMs: