tesseract >= 4.0.0 does not accept '-psm' as command line argument => needs to be '--psm'

Steps to reproduce

Steps to reproduce:
1. Upgrade tesseract to the newest version
2. Run tests

tesseract returns:
Error, unknown command line argument '-psm'

'tesseract help-extra' describes the proper way of using the psm argument:
--psm NUM Specify page segmentation mode.

NOTE: --psm works for tesseract 3 too

Fixed and reviewed


Edmund Gebert


Edmund Gebert


Incorrectly Functioning Without Workaround