tess cache: fix tess3 error for -psm instead of --psm

This commit is contained in:
James R. Barlow
2018-03-25 00:43:02 -07:00
parent f68eaa3b46
commit a2d00f5f1d
+3
View File
@@ -98,6 +98,9 @@ def main():
'--print-parameters', '--list-langs', '--version')):
real_tesseract() # jump into real tesseract, replacing this process
# Convert non-standard but supported -psm to --psm
sys.argv = ['--psm' if arg == '-psm' else arg for arg in sys.argv]
source = os.environ['_OCRMYPDF_TEST_INFILE'] # required
args = parser.parse_args()