title: Android Tesseract can't recognize creditcard numbers
body: <p>I've been struggling to make the <code>tess-two</code> OCR project work, and when I finally did, it did recognize text when it's clear and when there are multiple lines there.</p>
  
  <p>The whole point of this is that I need to use OCR to <strong>extract credit card number</strong> when the user takes a photo of it.</p>
  
  <p>Here is an example of a credit card number:</p>
  
  <p><img src="https://i.stack.imgur.com/zP130.png" alt="enter image description here"></p>
  
  <p>This is just an example I used many pictures. for instance with this image I got the following text:</p>
  
  <pre><code>1238 5578 8875 5877
  1238 5578 8875 5877
  1238 5578 8875 5877
  </code></pre>
  
  <p>Here is the code I use for this:</p>
  
  <pre><code>TessBaseAPI baseApi = new TessBaseAPI();
  baseApi.init("/mnt/sdcard/tesseract-ocr", "eng");
  baseApi.setImage(bm);
  baseApi.setPageSegMode(6);
  
  String whiteList = "/1234567890";
  baseApi.setVariable(TessBaseAPI.VAR_CHAR_WHITELIST, whiteList);
  
  String recognizedText = baseApi.getUTF8Text();
  baseApi.end();
  </code></pre>
  
  <p>Any help would be much appreciated.</p>
  
  <p>Thanks !</p>