Closed derrikF closed 4 years ago
There is a typo in your command. It should be extra_args='--psm 7'
.
Thanks, I took what is written in the changelog and didn't think there might be a typo ...
FWIW, -psm
(with single hyphen) was correct when that changelog entry was written.
The option name was changed in Tesseract only later on:
https://github.com/tesseract-ocr/tesseract/commit/92d981b93a4c54f6727681968451e7de72cc8b69
https://github.com/tesseract-ocr/tesseract/commit/ee201e1f4fa277a4b2ecd751a45d3bf1eba6dfdb
ocrodjvu (0.7.15) Tesseract: make it possible to pass the -psm option in order to customize layout analysis. For example, to enable OSD, use: -X extra_args='-psm 1'
an error occurs when trying to use this feature in ocrodjvu 0.12
ocrodjvu -e tesseract --language rus -X extra_args='-psm 7' --page=163 --in-place
so should this option work or not?