[Image-SIG] Make the difference between a picture and a photo

2008-02-04 Thread Seed
Hi, Is there a way with or without PIL python librairy to detect if an image looks like a picture more than a photography and the opposite? Any help will be appreciated. Thanks in advance. -- Sidney Amani ___ Image-SIG maillist -

Re: [Image-SIG] Make the difference between a picture and a photo

2008-02-04 Thread Fredrik Lundh
Seed wrote: Is there a way with or without PIL python librairy to detect if an image looks like a picture more than a photography and the opposite? assuming you mean a (computer) drawing vs. a photo, a simple way is to count the number of colors in the image. you can use the getcolors