title: Tesseract - Recognizing text problems
body: <p>I am having problems recognizing text with Tesseract and need some help.</p>
  
  <p>The first is a input that is very fuzzy that does not get recognized:</p>
  
  <p><a href="https://i.stack.imgur.com/JaLu8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JaLu8.png" alt="fuzzytext"></a></p>
  
  <p>The second is a input that gives a broken result:</p>
  
  <p><a href="https://i.stack.imgur.com/VMLDH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VMLDH.png" alt="texterrors"></a></p>
  
  <p>Which returns this broken result:</p>
  
  <p>"I CRANKSHAFT FORCES Each time combustion occurs, the for rce deﬂects the crankshaft as it transfers torque to the ou put shaft. This deﬂection occursm ' twow ways, to be edn the shaft sidew ways sand to twist the shaft in torsi SlOn Thec an-k mum. ran ankshaft deﬂections are edirectly related to oper- ating roughness of an einng .When back- and—f forth"</p>
  
  <p>I call the windows exe using this PHP commandline which could perhaps be modified to give better results:</p>
  
  <pre><code>$exe = 'C:/Program Files (x86)/Tesseract-OCR/tesseract.exe';
  $image = 'Book.png';
  $output = 'Out';
  $language = ''; // '-l deu' = German etc
  
  $img = 'Images/' . $image; 
  
  exec("\"$exe\" \"$img\" \"$output\" {$language} "); 
  </code></pre>
  
  <p>How can i return the correct results for both images?</p>