PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The ImageFilter module contains definitions for a pre-defined set of filters, which can be used with the Image.filter() method.
PIL.ImageFilter.GaussianBlur() method create Gaussian blur filter.
radius – blur radius. Changing value of radius the different intensity of GaussianBlur image were obtain.
Returns type: An image.
radius:radius value used here is 2.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.