[Image-SIG] Make the difference between a picture and a photo
fredrik at pythonware.com
Mon Feb 4 18:04:32 CET 2008
> 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:
(this doesn't necessarily work for scanned art or more "photorealistic"
graphics, of course.)
More information about the Image-SIG