2948 explained code solutions for 75 technologies


python-pillowHow to reduce noise


Most efficient way to get rid of noise - is to use blurring:

from PIL import Image, ImageFilter

im = Image.open('/var/www/examples/noisy.png')
im = im.filter(ImageFilter.BLUR)
im.show()ctrl + c
PIL

import Pillow package modules

Image.open

open given image with Pillow

.filter(

apply given filter to an image

ImageFilter.BLUR

blurs an image

.show()

displays resulting image