Search
 
SCRIPT & CODE EXAMPLE
 

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

PREVIOUS NEXT
Code Example
Python :: pandas count number of rows with value 
Python :: torch.stack example 
Python :: pandas groupby values in list 
Python :: Python Tkinter Text Widget Syntax 
Python :: list methods append in python 
Python :: python get dictionary keys as list 
Python :: python string to list of int 
Python :: how to run fastapi with code python 
Python :: how to check a string is palindrome or not in python 
Python :: python script to scrape data from website 
Python :: python trim leading whitespace 
Python :: integral python 
Python :: python print n numbers 
Python :: parentheses in python 
Python :: convert list to tuple python 
Python :: lcm in python 
Python :: bin to int python 
Python :: python count how many times a character appears in a string 
Python :: python try and except 
Python :: numpy array from list 
Python :: translate french to english 
Python :: python parcourir ligne 
Python :: code to take the picture 
Python :: beautifulsoup check if text exists 
Python :: how to merge two variables to get an array in python 
Python :: httplib python 
Python :: python 3.7 install snakemake 
Python :: send mail through python 
Python :: install json on python 
Python :: geopandas geometry length 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =