I have an image with horizontal lines in it. An approach that I found that works somewhat well is to use imagemagick to morphology like this.
convert orig.jpg -morphology close:1 "1x7: 1,0,0,0,0,0,1" final.jpg
It is running one iteration of morphology with 1x7 kernel
I'm trying to find equivalent of this in opencv python.