Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/02/2012, 12:16
Avatar de razpeitia
razpeitia
Moderador
 
Fecha de Ingreso: marzo-2005
Ubicación: Monterrey, México
Mensajes: 7.321
Antigüedad: 19 años, 1 mes
Puntos: 1360
Respuesta: PIL y sus cosas... Buscador de imagenes

De la documentación de PIL
Código:
im.getcolors() => a list of (count, color) tuples or None
(New in 1.1.5) Returns an unsorted list of (count, color) tuples, where the count is the number of times the corresponding color occurs in the image.

If the maxcolors value is exceeded, the method stops counting and returns None. The default maxcolors value is 256. To make sure you get all colors in an image, you can pass in size[0]*size[1] (but make sure you have lots of memory before you do that on huge images).
Si hay un buscador de imagenes similares que ya provee google, tal vez quieras checar su API.