title: Tesseract options & image preprocessing
body: <p><a href="https://i.stack.imgur.com/87c3C.jpg" rel="nofollow noreferrer">The image I try to OCR</a></p>
  
  <p><a href="https://i.stack.imgur.com/YJtgY.jpg" rel="nofollow noreferrer">Edit : As asked, here is the original image</a></p>
  
  <p>Dear community
  I am trying to do some ocr.<br>
  I have already pre-processed the image a lot (unskew, crop...)<br>
  Now, I can read the digits myself with no problem<br>
  But I can't get tesseract giving me a meaningfull result.  </p>
  
  <p>Click on the link at the top to see the image I am trying to OCR</p>
  
  <p>Is there more pre-processing I am missing ?<br>
  Or do I call tesseract badly ?</p>
  
  <p>I tried with no option at all, or with that :</p>
  
  <pre><code>config = ('--psm 13 -c tessedit_char_whitelist=0123456789')
  </code></pre>
  
  <p><strong><em>Edit :</em></strong></p>
  
  <p><em>Funny thing, I tried multiple ways :</em> </p>
  
  <ul>
  <li>Tesseract 5 on Windows, give nothing <strong>'eT'</strong>   (but maybe bad
  config) </li>
  <li>Google API from Phyton Jupyter Notebook on Windows => <strong>'UO0
  1124'</strong> or something like that don't quite remember </li>
  <li>Tesseract 4 on buntu with config = ('-l eng --oem 1 --psm 13') : <strong>'WU000 244m'</strong></li>
  <li>Google API from Python Jpyter Notebook on Ubuntu => <strong>'U000241\n'</strong></li>
  </ul>
  
  <p>So It's the very beggining for me. 
  Imay prefere to use Tesseract so as not to pay big bucks. 
  Will se what I can do when my project is more advanced.</p>
  
  <p>But I am eager to hear your suggestions about image preprocessing !! :-)</p>
  
  <p>So if you have suggestion.</p>
  
  <p>Regards !</p>