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" method with a suitable limit: http://mail.python.org/pipermail/image-sig/2008-January/004754.html (this doesn't necessarily work for scanned art or more "photorealistic" graphics, of course.) </F> _______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig