title: Tess-two OCR not working
body: <p>im trying to get text from an image using tess-two on android.</p>
  
  <p>But its giving me a really bad result</p>
  
  <pre><code>01-16 12:00:25.339: I/Tesseract(native)(29038): Initialized Tesseract API with language=spa
  </code></pre>
  
  <p>and like 30 seconds later it shows this as result string:</p>
  
  <pre><code>{ga
   .,
  r¿
   y“: A
    r M í
  :3 
  '  ‘Ev’.-:.. -: A 7
   » w- ?" _
   Á.» ¿"A ¿rw-V r
   mjÏfn 'n’n . Y
  ' "\'ZA".‘.¡ A‘ :‘ïvAv- « ‘
  :"Éf‘Ï'" -Ï«l :‘,.v:...»- .
   ' RFI' .. ’ g)" 3;:- 1-;4',
  = * ¿,arifgggk mw; .1.  ,
  '  "53» "J
  't‘ ‘ ¿Las ;.‘».L',-‘»
   ' '  'N‘“ "“=: - '. V  .  ‘9!
  5.? ' “F a .“ 
  Y , &lt;_  7- . 7.-, .
  ;«  z "1:;2wr . A - . ' -»‘ 5“:
  “4-”, ¿rn 73:33: w v'.‘ ¿a ‘ A ,z, v VA
  ...,,« ' 'Q ' ‘ 4 214€. 5 . AV ¿JL y .13:
  1  » . 21mm; » ¿ati-“ﬂ ¿ab-1377*“ w”
  . x ‘ ‘ ú  F v'v: 
  1 . ' . ; (“ya  í .
  </code></pre>
  
  <p>of course thats not correct, im using this photo:
  <img src="https://i.stack.imgur.com/Q7jWQ.jpg" alt="enter image description here"></p>
  
  <p>i have tried it a lot of times, always similar result.</p>
  
  <p>What can be wrong, this is my code using tess-two</p>
  
  <pre><code>    TessBaseAPI baseApi = new TessBaseAPI();
      baseApi.init("/mnt/sdcard/external_sd/tess/", "spa",TessBaseAPI.OEM_TESSERACT_ONLY);
      baseApi.setImage(bitmap);
      String recognizedText = baseApi.getUTF8Text();
      Log.d("Texto leido", "texto: "+recognizedText);
      baseApi.end();
  </code></pre>
  
  <p>and this is how i get bitmap from file</p>
  
  <pre><code>    BitmapFactory.Options options = new BitmapFactory.Options();
      options.inPreferredConfig = Bitmap.Config.ARGB_8888;
      Bitmap bitmap = BitmapFactory.decodeFile(photopath.getAbsolutePath(), options);
  </code></pre>
  
  <p>im using that bitmap on a imageview and it seems correct, so i cant find why its working that bad.</p>
  
  <p>Any idea?</p>