Determine if an image file is a photo or a graphic?
问题 I'm embarking on what I believe may be somewhat of an experiment... To come up with (or discover, as it could already exist) a method to determine whether a given image file, regardless of format, is a photo or a graphic. "Photo" meaning something like scenery, people, etc. V.S. "Graphic" meaning an icon, illustration, chart, UI screenshot, etc. I came up with a nice PHP / ImageMagick script in the past week which pulls statistics from image files and nicely applies fixes to white balance,