from PIL import ImageGrab
image = ImageGrab.grab()
print("Current screen shot size :",image.size)
print("Screen shot picture mode :", image.mode)
image.save('/tmp/screen-grab-1.bmp')
image.show()
from PIL import ImageFilter, Image
src_image = Image.open('/tmp/screen-grab-1.bmp')
print("begin to filter the pic")
dst_image = src_image.filter(ImageFilter.CONTOUR)
print("picture through filter")
dst_image.show()
from PIL import Image
src_image = Image.open('/tmp/screen-grab-1.bmp')
print("begin to rotate the pic")
dst_image = src_image.rotate(90)
print("picture after rotating")
dst_image.show()