title: Clustering extracted text from images?
body: <p>I have an image from which I have 'extracted' text from - basically put bounding boxes around the letters.
  In a similar fashion shown below, <a href="https://i.stack.imgur.com/QcWvm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QcWvm.png" alt="enter image description here"></a>  except the difference is that instead of the coins, there are letters. I am required to cluster the said bounding boxes according to the 'row' they are in - so for instance I would have to cluster the top row of coins or 'letters' (in my case). I can't seem to figure out an efficient way to do this? </p>
  
  <p>One very crude approach I have is that I count the number of bounding boxes in each line and cluster them accordingly, but this is not efficient at all.</p>