I have installed the Tesseract OCR via MacPorts based on the documentation provided on the GitHUb, and they were installed successfully, and
However, I am trying to use Tesseract OCR for PHP (https://github.com/thiagoalessio/tesseract-ocr-for-php), so I download the zip and include the library to my php file, and use the
echo (new TesseractOCR('text.png'))
->run();
but nothing is showing up.
Below is the full code in the php
<?php
REQUIRE_ONCE __DIR__.'/src/TesseractOCR.php';
echo (new TesseractOCR('text.png'))
->run();
?>
My error log has this entry:
sh: tesseract: command not found
If you share me some lights on how to get this work, it will be great!