Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python get pixel

im = Image.open('image.gif')
rgb_im = im.convert('RGB')
r, g, b = rgb_im.getpixel((1, 1))

print(r, g, b)
(65, 100, 137)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #pixel
ADD COMMENT
Topic
Name
7+4 =