Removing background noisy lines from Captcha Image using PYTHON PIL
I have a processed captcha image(Enlarged) look like : As you can see, the font-size of the "TEXT" is bit larger than the width of the Noisy Lines. So I need an algorithm or code to remove the noisy lines from this image. With the help of Python PIL Library and the chopping algorithm mentioned below I din't get the output image which could be easily read by OCRs. Here's Python code that I tried : import PIL.Image import sys # python chop.py [chop-factor] [in-file] [out-file] chop = int(sys.argv[1]) image = PIL.Image.open(sys.argv[2]).convert('1') width, height = image.size data = image.load()