How to setup and running Tesseract OCR for PHP (opensource)?
<p>I have installed the Tesseract OCR via MacPorts based on the documentation provided on the GitHUb, and they were installed successfully, and</p>

<p>However, I am trying to use Tesseract OCR for PHP (<a href="https://github.com/thiagoalessio/tesseract-ocr-for-php" rel="nofollow">https://github.com/thiagoalessio/tesseract-ocr-for-php</a>), so I download the zip and include the library to my php file, and use the</p>

<pre><code>echo (new TesseractOCR('text.png'))
-&gt;run();
</code></pre>

<p>but nothing is showing up.</p>

<p>Below is the full code in the php</p>

<pre><code>&lt;?php 

REQUIRE_ONCE __DIR__.'/src/TesseractOCR.php';

echo (new TesseractOCR('text.png'))
    -&gt;run(); 

?&gt;
</code></pre>

<p>My error log has this entry:</p>

<blockquote>
  <p>sh: tesseract: command not found</p>
</blockquote>

<p>If you share me some lights on how to get this work, it will be great!</p>