The imgclass tool lets you take a folder full of images, and teach a classifier that you can use to automatically classify future images.
imgclass