Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from PIL import Image
- im = Image.open('ch12.png')
- rgb_im = im.convert('RGB')
- width, height = im.size
- for w in range(width):
- for h in range(height):
- print rgb_im.getpixel((w,h))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement