Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- from PIL import Image
- image_handle = Image.open("PATH_TO_IMAGE_GOES_HERE.jpg")
- width, height = image_handle.size
- pixel_data = image_handle.load()
- for x in range(width):
- for y in range(height):
- print pixel_data[x, y]
- image_handle.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement