Detect the tables in a form and extract the tables as well as the cells of the tables.
cv2.getStructuringElement
cv2getStructuringElement
cv2.addWeighted
cv2.erode
to get crisp lines & for better results.import cv2
import numpy as np
import os