Tesseract with PHP wrapper input stream not found

332 views
Skip to first unread message

Eddie G

unread,
Jun 25, 2014, 3:36:59 AM6/25/14
to tesser...@googlegroups.com
I'm using the PHP wrapper, and im getting an error when I try to read the input file:


I installed Tesserac into the root directory from the command line I can run tessrac just fine:


tesseract myscan.png out
Tesseract Open Source OCR Engine v3.02 with Leptonica
..


Set my path:

$path = getenv('PATH');
putenv("PATH=$path:/root/tesseract-3.00/");


$tesseract = new TesseractOCR('http://198.58.104.99/img/testimg/c11a67cdd171790771fcf33ec78461d9.png');
$tesseract->setTempDir('/var/www/testdir/imgRead/');
$tesseract->setWhitelist(range(0,9));
echo $tesseract->recognize();

 
Message: file_get_contents(/var/www/testdir/imgRead/1525058948.txt): failed to open stream: No such file or directory
Filename: TesseractOCR/TesseractOCR.php

Nick White

unread,
Jun 25, 2014, 3:02:49 PM6/25/14
to tesser...@googlegroups.com
Hi Eddie,

I'd suggest contacting the author of the PHP wrapper, that isn't
something provided by the core Tesseract project, and it doesn't
look like any issue with Tesseract proper, just with the caller.

Nick
> --
> You received this message because you are subscribed to the Google Groups
> "tesseract-ocr" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to tesseract-oc...@googlegroups.com.
> To post to this group, send email to tesser...@googlegroups.com.
> Visit this group at http://groups.google.com/group/tesseract-ocr.
> To view this discussion on the web visit https://groups.google.com/d/msgid/
> tesseract-ocr/5178bb97-117d-475e-b2be-0a304a1d9c31%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages