Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

image blur in python

from PIL import Image, ImageFilter  # Import classes from the library.

original_image = Image.open("file.ppm") # Load an image from the file system.
blurred_image = original_image.filter(ImageFilter.BLUR) # Blur the image.

# Display both images.
original_image.show() 
blurred_image.show()
Comment

blur an image in python

from PIL import Image, ImageFilter

before = Image.open("IMAGE_NAME.file_type")
after = before.filter(ImageFilter.FIND_EDGES)
after.save("IMAGE_NAME.file_type")
Comment

PREVIOUS NEXT
Code Example
Python :: isnumeric() in python 
Python :: python linear fit 
Python :: spacy get number of tokens 
Python :: python logger format 
Python :: sumof product 1 
Python :: turn False to nan pandas 
Python :: return function python 
Python :: change order of barh matplotlib 
Python :: create bootable usb apple 
Python :: python regex match 
Python :: plt.tight_layout() cuts x axis 
Python :: linkedin api with python 
Python :: create an empty array numpy 
Python :: %d%m%Y python 
Python :: convert int to float python 
Python :: repeat rows in a pandas dataframe based on column value 
Python :: how to make a list in python 
Python :: numpy round to nearest 5 
Python :: python serve html 
Python :: jsonresponse django 
Python :: how to test value error in pytest in python 
Python :: python sqlite select column name 
Python :: Django Abstract base classe 
Python :: Python program to print positive numbers in a list 
Python :: python save picture in folder 
Python :: python how to print variable value 
Python :: compound interest python 
Python :: how to run python in atom 
Python :: API curl python pandas 
Python :: python data types 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =