title: pytesseract: Extracting data from document IDs with boxes
body: <p>I'm working on the extracting data from IDs, and I need to extract personal data, such as name, birth data and etc. </p>
  
  <p>I have tried pytessaract, just giving it the whole uncropped ID image: </p>
  
  <pre><code>txt = tool.image_to_string(
      Image.open('main.jpeg'),
      lang=lang,
      builder=pyocr.builders.TextBuilder())
  </code></pre>
  
  <p>And it returns:</p>
  
  <pre><code>u'9":\nREPUBLIKA XXXX %. OSOBNAi\ufb01KAZNICA\n\n \n\n  \n\nREPUBLIC OF XXX IDENTITY CARD\n\u2019 Surname\n XXX -_\n\u201dno/Nam.\nTXXX\n1041mm} W\u201c W\u201c\n32mm? \xb0"""\u201c\u201c\xb0 Km\nMm mam\npom/5mm:- medium'
  </code></pre>
  
  <p>which is not that good.</p>
  
  <p>I was thinking maybe it's possible to give pytesseract position where to look? Kind of boxes... if it is't a good idea, where should I look? </p>
  
  <p>Just few more thing all IDs have the same template. Currently, I'm not interesting in the processioning.   </p>
  
  <p>Example:</p>
  
  <p><a href="https://i.stack.imgur.com/eIXp8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eIXp8.png" alt="enter image description here"></a></p>