title: Extract data from image containing table grid using python
body: <p><strong>I have images such as the one attached below. I need to extract the data within the grid along with the tabular structure and transform it into a dataframe/csv.</strong></p>
  
  <p><a href="https://i.stack.imgur.com/jXtqC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jXtqC.png" alt="enter image description here"></a></p>
  
  <p>I am using OCR to extract the text along with the coordinates but in order to extract the table structure I would like to extract the horizontal and vertical grid lines. </p>
  
  <p><strong>Is there a method in OpenCV to do that that would generalize well ?</strong> </p>
  
  <p>So far the approaches I've come across are :
  1. Hough Lines
  2. Extracting Rectangular contours
  3. Drawing vertical and horizonal contours </p>