title: Google Vision Api text detection layout information from bounding box
body: <p>I am trying to use google vision api to perform OCR on my images. The Json Output to the API call returns recognized words with bounding box information. </p>
  
  <p>Could someone please tell me how to use this bounding box information to do layout analysis of my image? </p>
  
  <p>If there is a library which takes this as input and returns sentences instead of words?</p>
  
  <pre><code>{
    "description": "Ingredients:",
    "boundingPoly": {
      "vertices": [
        {
          "x": 14,
          "y": 87
        },
        {
          "x": 53,
          "y": 87
        },
        {
          "x": 53,
          "y": 98
        },
        {
          "x": 14,
          "y": 98
        }
      ]
    }
  },
  {
    "description": "Chicken",
    "boundingPoly": {
      "vertices": [
        {
          "x": 55,
          "y": 87
        },
        {
          "x": 77,
          "y": 87
        },
        {
          "x": 77,
          "y": 98
        },
        {
          "x": 55,
          "y": 98
        }
      ]
    }
  },
  </code></pre>
  
  <p>For instance in the above json, the words 'Ingredients:' 'Chicken' are on the same line. Is there a library which can give me this information out of the box? </p>
  
  <p>Image used for OCR <a href="https://i.stack.imgur.com/5ImPd.jpg" rel="nofollow noreferrer">source image</a></p>