TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Content Based Intelligent Cropping

67 pointsby kmano8about 8 years ago

7 comments

CWuestefeldabout 8 years ago
As a photography enthusiast, this makes me cringe. I&#x27;ll acknowledge that the samples they show came out fine, but I suspect that in the real world this won&#x27;t work well as a generalized solution.<p>There are a lot of things that if you get wrong, you&#x27;ll ruin the image. This is true from an artistic perspective, but even with a lower bar, it&#x27;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&#x27;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&#x27;ve got to crop a leg at mid-thigh rather than at the knee, for example.<p>There&#x27;s also an idea of &quot;look space&quot;. If you crop so that the direction of the subject&#x27;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&#x27;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&#x27;s being brought to bear here.
评论 #14114821 未加载
评论 #14114333 未加载
nkozyraabout 8 years ago
Some time ago I tried to figure out the dumbest way to find important features in most photos given a certain resolution.<p>There&#x27;s face&#x2F;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:&#x2F;&#x2F;github.com&#x2F;nkozyra&#x2F;smartcrop" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nkozyra&#x2F;smartcrop</a><p>(again, don&#x27;t be fooled by the name. at some point I&#x27;d hoped it would be smart. it was a class project.)
nebabyteabout 8 years ago
&gt; Square pegs don’t fit in round holes, but what if you have power tools?<p>Plastic fumes :(<p>&gt; 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&#x27;s likely you&#x27;ll want to verify these kinds of images before posting them anyways, and might go back and fix some later, it seems like you&#x27;re not really cutting down on anything other than maybe a few seconds per image to move that initial bounding box.<p>Though it&#x27;s cool nonetheless.
评论 #14111935 未加载
tyingqabout 8 years ago
Not the same thing, but really helpful for one of the most common cropping needs...cropping scanned images:<p><a href="http:&#x2F;&#x2F;www.fmwconcepts.com&#x2F;imagemagick&#x2F;multicrop&#x2F;index.php" rel="nofollow">http:&#x2F;&#x2F;www.fmwconcepts.com&#x2F;imagemagick&#x2F;multicrop&#x2F;index.php</a> (scroll down to see examples)
aaronblohowiakabout 8 years ago
I&#x27;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&#x27;t really seen machine vision reach ubiquity &#x2F; full deployment yet.
gumbyabout 8 years ago
This would be a good approach to addressing the aspect ratio issue for video. You&#x27;d want a sliding window approach.
dizietabout 8 years ago
Would you really want faces in e-commerce product shots?
评论 #14113079 未加载
评论 #14111553 未加载