madmaze/pytesseract — pull request #10 by lasfter (2014-12-29 05:04:48+00:00)
Title: Allows tesseract to implement config options

The config argument for run_tesseract() doesn't currently work properly. It gives tesseract a single string, which tesseract can't recognize, and so the config options aren't implemented. A simple shlex.split() fixes that by splitting the config argument into individual strings and putting them to a list. I.e., run_tesseract(foo.png, bar, config="-psm 8 nobatch letters") will pass ["-psm", "8", "nobatch", "letters"] to tesseract, instead of ["-psm 8 nobatch letters"].

Please consider a commit, or another solution to this problem.