title: Python: Return Text Position in a Image
body: <p>I would like to localize a text Line from an image and output the position of the given text only for the Y coordinate in range of the Text Line. Is there a way to achieve this?
  What I have already tried is to use the pytesseract function image_to_data() to output the position, but mostly this is just gibberish for me...
  I thank you in advance for a source or a solution.</p>
  <p>Thats how far i got..</p>
  <pre class="lang-py prettyprint-override"><code>results=pytesseract.image_to_data(img, output_type=pytesseract.Output.DICT)
  imgDraw = ImageDraw.Draw(debugImg)
     for i in range(0, len(results[&quot;text&quot;])):
         x = results[&quot;left&quot;][i]
         y = results[&quot;top&quot;][i]
         w = 10
         h = 10
         shape = ((0,y), (4, 4))
         imgDraw.rectangle(shape, fill=(0,0,255),outline=&quot;red&quot;)
     #Something to return                 
  </code></pre>