how to get RGB value from pixel in screen live python
import PIL.ImageGrab
rgb = PIL.ImageGrab.grab().load()[x,y]
how to get RGB value from pixel in screen live python
import PIL.ImageGrab
rgb = PIL.ImageGrab.grab().load()[x,y]
python get pixel color
from PIL import Image
im = Image.open('dead_parrot.jpg') # Can be many different formats.
pix = im.load()
print im.size # Get the width and hight of the image for iterating over
print pix[x,y] # Get the RGBA Value of the a pixel of an image
pix[x,y] = value # Set the RGBA Value of the image (tuple)
im.save('alive_parrot.png') # Save the modified pixels as .png
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us