How to use the OCR (TesseractOCR) php library
<p>I had clone git library of OCR using this link .</p>

<pre><code>git clone git://github.com/thiagoalessio/tesseract-ocr-for-php.git
</code></pre>

<p>then simply i include the required file by following this <a href="http://thiagoalessio.me/tesseractocr-for-php-on-windows/" rel="noreferrer">example</a> </p>

<p>here is the example code which i m trying to run </p>

<pre><code>require_once './src/TesseractOCR.php';
$tesseract = new TesseractOCR('text.png');
$text = $tesseract-&gt;recognize();
echo "The recognized text is:", $text;
</code></pre>

<p>But always it fires a fatal Error </p>

<blockquote>
  <p>Fatal error: Uncaught Error: Call to undefined method TesseractOCR::recognize()</p>
</blockquote>

<p><strong>Edit</strong> I tried to use <code>run()</code> instead of <code>recognize()</code></p>

<pre><code>require_once './src/TesseractOCR.php';
$tesseract = new TesseractOCR('text.png');
$text = $tesseract-&gt;run();
var_dump($text);
echo PHP_EOL, "The recognized text is:", $text, PHP_EOL;
</code></pre>

<p>Then result is : <code>string(0) "" The recognized text is:</code></p>

<p>I had tried my best to find some appropriate solution  but failed to find some authentic solution</p>