Closed toxic-0518 closed 7 years ago
(I missed the fact that you specified your PIL version in the ticket, sorry).
The problem is that you're using a really old version of PIL. You should be using Pillow (at least >= 2.7).
tostring() is obsolete. tobytes() is the correct way.
This is neither a PIL bug nor a Pyocr bug. I'm going to close this issue.
OK! Thank you very much for your explanation!
I met a problem when using this wrapper. My test code goes here:
My PIL version is 1.1.7 with libjpeg(JPEG support) and zlib(PNG/ZIP support)
I changed the source code in tesseract_raw.py relpaced line 359 with:
and the tool finally worked well. I think this is a PIL bug but I don't know how it comes.