Open xelxebar opened 5 years ago
It's not documented at the moment, but you can specify the executable via command line with:
-X executable=tesseract-ocr
Oh! Nice. Thanks for the quick feedback. Are there any gotchas? If it's a reasonably stable option, would be nice to put it in the docs.
I considered using the Tesseract API (maybe through tesserocr), instead of using the CLI, which would would render the executable
setting meaningless.
But realistically, the switch to API is unlikely to happen in the foreseeable future.
Yes, -X executable=…
(and other -X
goodies) should be documented.
Overview
On Void Linux, the tesseract binary resides at
/usr/bin/tesseract-ocr
due to a naming conflict with the game Tesseract. It would be nice if the paths to the OCR engine could be explicitly specified, e.g. via a command line option, environment variable, or configuration file.Version Information
Comments
For the moment, I am hacking around this issue by packing ocrodjvu on my distro with the following patch: