Open mathiasimmer opened 7 years ago
Maybe I should add an example where the output is there same:
gives:
Using pyocr tool 'Tesseract (C-API)'
l/Z
Using pyocr tool 'Tesseract (sh)'
l/Z
Which was more like what I would've expected. Ignore that the text is wrong; I know how to fix that, but at least the output is consistent.
I observed a similar problems when making the tests. The output of libtesseract and tesseract (sh) are slightly different. Quite frankly I'm not sure where this difference comes from.
Currently, my main theory is that it comes from the way images are read:
I don't know if it's related to this issue, but one difference between tesseract and libtesseract is the default psm. The default psm in tesseract is '3', while in libtesseract it's '6'.
Good point. It might explain the differences. I'll have a look later.
I got this simple example:
Where text.png is:![text](https://cloud.githubusercontent.com/assets/8802601/20866125/07056ada-ba25-11e6-8191-ba9896b25fd2.png)
As this is a fairly simple case I would have expected the outcome to be the same however the outcome is:
Is this a bug or are the two tools configured differently by default? I know the Tesseract (C-API) works properly on my computer as I have used it successfully with similar but different input, however in this very particular case, it fails.