Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python pil 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)
Comment

PREVIOUS NEXT
Code Example
Python :: how to convert png to pdf with python 
Python :: how to log ip addresses in python 
Python :: find the number of nan per column pandas 
Python :: virtual environment flask 
Python :: scikit learn svm 
Python :: plt show 2 images 
Python :: gamestop 
Python :: read text file in python 
Python :: Violin Plots in Seaborn 
Python :: python multiply one column of array by a value 
Python :: narcissistic number python 
Python :: remove duplicates from list python 
Python :: python shuffle list with seed 
Python :: remove all zeros from list python 
Python :: cv2 videocapture program for python 
Python :: how to append element python 
Python :: find angle mbc in python 
Python :: python module with alphabet list 
Python :: add a column while iterating rows pandas 
Python :: how to check if index is out of range python 
Python :: sort tuple list python 
Python :: how to add up a list in python 
Python :: simple jwt django 
Python :: python tkinter set minimum window size 
Python :: accuracy score 
Python :: set select group of columns to numeric pandas 
Python :: print var python 
Python :: pandas convert date to quarter 
Python :: scientific notation matplotlib python 
Python :: export a dataframe to excel pandas 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =