pythonpython-imaging-librarytesseractnoise-reduction

How to remove noise from an image using pillow?


I am trying to de-noise an image that I've made in order to read the numbers on it using Tesseract. Noisy image. Is there any way to do so? I am kind of new to image manipulation.


Solution

  • from PIL import ImageFilter
    
    im1 = im.filter(ImageFilter.BLUR)
    
    im2 = im.filter(ImageFilter.MinFilter(3))
    im3 = im.filter(ImageFilter.MinFilter)