There is a Open source PHP wrapper class for Tesseract (https://github.com/thiagoalessio/tesseract-ocr-for-php) but i'm having problems using it:
Installed it successfully with composer, but when I call
$tesseract = new TesseractOCR('img/c11a67cdd171790771fcf33ec78461d9.png');
$tesseract->setTempDir('/var/www/dir_name/imgRead/');
$tesseract->setWhitelist(range(0,9));
When I run echo $tesseract->recognize();
I get
Message: file_get_contents(/var/www/dir_name/imgRead/573534798.txt):
failed to open stream: No such file or directory
The author says:
IMPORTANT: Make sure that the tesseract binary is on your $PATH
but i'm not sure what this means exactly, how can I check that the binary is on my $PATH? Anyone use this before?