| Reply | « Previous Thread | Next Thread » |
|
I want to get pixels from image for calculate image
processing. someone help me How to used API/module? I am new for python developer. Thank you so much ![]() |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
Online
Forum Nokia Champion
|
|
You can get the RGB values for a pixel with the Image.getpixel((x,y)) function. For example:
Code:
from graphics import *
#Load the image
i=Image.open("C:\\picture.jpg")
#Get its red, green and blue values
print i.getpixel((20,30))
#Will return a tuple, like (0,8,23)
|
|
Thank you very much for your answer. code is work very good.and Thank again
![]() |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Nokia N-Series Complete Model Line-Up | Dopod | General Discussion | 6 | 2008-07-22 21:16 |
| PNGs with semi-transparent pixels | ehudshapira | Mobile Java Media (Graphics & Sounds) | 0 | 2007-12-29 23:50 |
| Dead pixels, anyone? | alternateve | Symbian User Interface | 0 | 2004-03-07 03:27 |
| pixels arrays | ivanodin | Mobile Java Media (Graphics & Sounds) | 1 | 2003-11-27 08:18 |
| getPixels() returns pixels for wrong Graphicsobject | kyhlis | Mobile Java Media (Graphics & Sounds) | 1 | 2003-04-29 15:07 |