title: Get the rectangle containing the word under mouse cursor in an image
body: <p>I want to get the word under mouse cursor using OCR, mainly form web pages and ebooks, my procedures are:</p>
  
  <ol>
  <li><p>Get the location of the rectangle containing the word under mouse cursor. For
  example , if my mouse cursor is on <code>century</code> , then I need to get the
  rectangle containing <code>century</code> <a href="https://i.stack.imgur.com/osJn8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/osJn8.png" alt="enter image description here"></a></p></li>
  <li><p>Take screen shot of the rectangle</p></li>
  <li>Using OCR engines like Tesseract to convert the rectangular image to
  text, then I get the  word under mouse cursor this way:)</li>
  </ol>
  
  <p>The difficulty resides in the first step , I know nearly nothing about image processing , so cannot figure out a way to locate the rectangle . Speed matters in my scenario , so please guide me a <strong>fast and efficient</strong> solution on this ? Thanks so much!</p>