title: Tesseract OCR for PHP blank page
body: <p>It's returning a blank page. Using thiagoalessio Tesseract OCR for PHP.</p>
  
  <p>Tesseract is installed on my Homestead VM:</p>
  
  <pre><code>vagrant@xxx-yyy-zzz:/usr/bin$ ./tesseract -v
  tesseract 3.04.01
  </code></pre>
  
  <p>Blank page with:</p>
  
  <pre><code>use thiagoalessio\TesseractOCR\TesseractOCR;
      class OCRController extends Controller
      {
          public function analyze() {
              echo (new TesseractOCR(asset('storage/text.png')))
                  -&gt;executable('/usr/bin/tesseract')-&gt;run();
          }
      }
  </code></pre>
  
  <p>Debug PHP code:</p>
  
  <pre><code>use thiagoalessio\TesseractOCR\TesseractOCR;
  class OCRController extends Controller
  {
      public function analyze() {
          $tesseract = new TesseractOCR(asset('storage/text.png'));
          $tesseract-&gt;executable('/usr/bin/tesseract');
          var_dump($tesseract);
      }
  }
  </code></pre>
  
  <p>Ouput:</p>
  
  <pre><code>/home/vagrant/code/project-io/app/Http/Controllers/OCRController.php:13:
  object(thiagoalessio\TesseractOCR\TesseractOCR)[444]
    private 'image' =&gt; string 'http://project.test/storage/text.png' (length=38)
    private 'command' =&gt; null
    private 'executable' =&gt; string '/usr/bin/tesseract' (length=18)
    private 'options' =&gt; 
      array (size=0)
        empty
  </code></pre>
  
  <p>Knowing that <a href="http://project.test/storage/text.png" rel="nofollow noreferrer">http://project.test/storage/text.png</a> is actually returning the image.</p>
  
  <p>Tesseract is working with command line:</p>
  
  <pre><code>vagrant@xxx-yyy-zzz:~/code/project-io/public/storage$ tesseract text.png stdout
  The quick brown fox
  jumps over
  the lazy dog.
  </code></pre>