Here in this project, I am fixing the broken lines of the table image.
Use the package manager pip to install these packages:
pip install matplotlib
pip install numpy
pip install opencv-python
import numpy as np
import cv2
- Import the above two library first.
- Then provide the input image path at
cv.imread()
function. Incase the image is stored in same pwd then rename it asfig-1.jpg/png
. - If you want to write the output in your disk then provide the path in
cv.imwrite()
function. If you don't provide the path then it will write the image in pwd.