Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

print single pixel from numpy

from PIL import Image
im = Image.open('image.jpg', 'r')
width, height = im.size
pixel_values = list(im.getdata())
pixel_values[width*y+x]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #print #single #pixel #numpy
ADD COMMENT
Topic
Name
9+2 =