Answers for "print single pixel from numpy"

0

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]
Posted by: Guest on June-23-2021

Python Answers by Framework

Browse Popular Code Answers by Language