title: detect a table part from entire image in python
body: <p>I have an image of size 3500x5000, now I want to detect only the table part from the entire image and crop and rotate it if it is not straight for OCR processing. After all search, I get an idea for cropping each cell in an image using <a href="https://medium.com/coinmonks/a-box-detection-algorithm-for-any-image-containing-boxes-756c15d7ed26" rel="nofollow noreferrer">https://medium.com/coinmonks/a-box-detection-algorithm-for-any-image-containing-boxes-756c15d7ed26</a> , but don't know how to crop the table part in an image.</p>
  <p>The image I used here:</p>
  <p><a href="https://i.stack.imgur.com/bioUN.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bioUN.jpg" alt="enter image description here" /></a></p>
  <p>now I want only this part like this:(manually cropped)</p>
  <p><a href="https://i.stack.imgur.com/apA8L.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/apA8L.png" alt="enter image description here" /></a></p>
  <p>Thanks in advance!..</p>