a guest Jun 25th, 2019 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- from PIL import Image
- import sys
- column = Image.open(sys.argv)
- gray = column.convert('L')
- blackwhite = gray.point(lambda x: 0 if x < 200 else 255, '1')
RAW Paste Data