Closed caerulescens closed 2 years ago
@int3l could I get your first impression on what may be causing this issue?
Hi @caerulescens , this is a duplicate of #408 I think.
Can you confirm that the master
version doesn't have this issue for you?
@int3l Confirmed that master branch does not have this issue. Thanks
description
pytesseract
raises aTesseractError
during orientation and script detection when supplying image data throughpillow
.reproducing
os:
Debian GNU/Linux 10 (buster)
python version:3.9.1
pytesseract version:0.3.9
pillow version:9.0.1
build
tesseract
versions4.0.0
-> debian buster stable4.1.3
-> last stable release for tesseract 45.0.1
-> last stable release for tesseract 5attempt osd
Run the script on the image for the
tesseract
versions;tesseract
5.0.1 will raiseTesseractError
when usingPIL.Image
for the image argument topytesseract.image_to_osd
.analysis
Using image file name as argument to
image_to_osd
:tesseract 4.0.0
: successtesseract 4.1.3
: successtesseract 5.0.1
: successUsing
PIL.Image
as argument toimage_to_osd
:tesseract 4.0.0
: successtesseract 4.1.3
: successtesseract 5.0.1
: failure