As a photography enthusiast, this makes me cringe. I'll acknowledge that the samples they show came out fine, but I suspect that in the real world this won't work well as a generalized solution.<p>There are a lot of things that if you get wrong, you'll ruin the image. This is true from an artistic perspective, but even with a lower bar, it's very easy to crop an image to make the content distracting or disturbing.<p>There are rules of thumb, for example, about how to crop images with people. It's not just that you want to preserve the faces. You need to be careful about where on their bodies you crop: if you do it right at a joint, it will tend to look like the person is an amputee. So you've got to crop a leg at mid-thigh rather than at the knee, for example.<p>There's also an idea of "look space". If you crop so that the direction of the subject's gaze is toward the outside of the image (rather than toward the middle), the subject will tend to look crowded and the overall composition unbalanced.<p>And there are overall compositional rules, like rule-of-thirds, leading lines, etc. Cropping an image is likely to damage these, thus harming the aesthetics of the picture.<p>I won't make the claim that this stuff is impossible to automate (the very fact that I can list these rules of thumb suggests that much of it can handled without creativity as such), but doing so in a way that preserves the desirable qualities of a good image will require a LOT more sophistication than what's being brought to bear here.
Some time ago I tried to figure out the dumbest way to find important features in most photos given a certain resolution.<p>There's face/features detection (and other CV) in here, too, but you can get by with some really cheap tricks in a lot of cases. In fact, the meat is it finds things that are chromatically different or more, uh, feature-full.<p><a href="https://github.com/nkozyra/smartcrop" rel="nofollow">https://github.com/nkozyra/smartcrop</a><p>(again, don't be fooled by the name. at some point I'd hoped it would be smart. it was a class project.)
> Square pegs don’t fit in round holes, but what if you have power tools?<p>Plastic fumes :(<p>> But it doesn’t have to be this way! In this post, we present a technique that we use for intelligent cropping: a fully automatic method that preserves the image’s content<p>This seems like overengineering. Why not just build a UI to quickly crop a set of images <i>exactly</i> as desired, with a scalable box given the required aspect ratio?<p>Since it's likely you'll want to verify these kinds of images before posting them anyways, and might go back and fix some later, it seems like you're not really cutting down on anything other than maybe a few seconds per image to move that initial bounding box.<p>Though it's cool nonetheless.
Not the same thing, but really helpful for one of the most common cropping needs...cropping scanned images:<p><a href="http://www.fmwconcepts.com/imagemagick/multicrop/index.php" rel="nofollow">http://www.fmwconcepts.com/imagemagick/multicrop/index.php</a> (scroll down to see examples)
I've done some work on intelligent cropping for media assets that pertain to motion picture works -- 9591359 Blohowiak, et al.<p>Pretty neat field and projects. I think we haven't really seen machine vision reach ubiquity / full deployment yet.