title: Tesseract confuses two numbers
body: <p>I'm writing an application to scan numbers from an image.</p>
  
  <p>The numbers are using the OCR-B font and may also contain <code>+</code> and <code>&gt;</code> characters.</p>
  
  <p>This is my source image:</p>
  
  <p><img src="https://i.stack.imgur.com/Zb1IG.png" alt="source image"></p>
  
  <p>The scans using Tesseract weren't very good, even when limiting the character set to the mentioned characters. As I didn't find any OCRB training files for Tesseract, I decided to train it myself.</p>
  
  <p>I created <a href="https://i.stack.imgur.com/lmdKj.jpg" rel="noreferrer">this training image</a> and made a box file from it. The box file is correct, all letters are matched correctly.</p>
  
  <p>Then I did all steps <a href="http://code.google.com/p/tesseract-ocr/wiki/TrainingTesseract2" rel="noreferrer">described here</a> to create the other necessary files.</p>
  
  <p>Using this newly trained OCR-B tessdata-set, I get pretty good results on the source image, with one little bug: All <code>1</code>s are mistaken for <code>8</code>s and vice-versa. The command used to process the image was</p>
  
  <pre><code>$ tesseract esr2c.tif ocrb-esr2c -l ocrb
  </code></pre>
  
  <p>and the output for the source image was</p>
  
  <p><strong>0800000001456>8 00000195731208 8 01050008 023+ 08 0301226>20</strong></p>
  
  <p>If you swap all <code>1</code>s and <code>8</code>s and compare it to the source image, the output would be correct (except for the last two letters which I can ignore).</p>
  
  <p>How could this happen? Did I do some mistake in the training process? How can I fix it?</p>