#youtube
Code for converting Colour Image to Black -White
from PIL import Image
openimage=Image.open(r"E:\4.jpg")
convert=openimage.convert("L")
openimage.show()
convert.show()
#convert.save(r"E:\20.PNG")
Code for Applying Filters
from PIL import ImageFilter
convert=openimage.filter(ImageFilter.FIND_ED)
convert.show()