title: Find Tables in Image using C#
body: <p>I am trying to write a function that will take an image and return me a list of images with only tables using EMGU.CV or Magick.Net or AForge.Net
  for example for the below image the function should return 2 images with the two tables in the image.</p>
  
  <pre><code>private static List&lt;Image&gt; FindTables(Image img)
  {
      var masterImage = (Bitmap)img;
      var image = new Image&lt;Gray, byte&gt;(masterImage);
      var copyImg = new Image&lt;Bgr, byte&gt;(masterImage);
      List&lt;Image&gt; tables = new List&lt;Images&gt;
      //Find all tables and add to tables variable
      return tables;
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/NHDOB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NHDOB.png" alt="enter image description here"></a></p>