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.

OpenCV Face Detection For Cropping Faces

72 pointsby philipcristianoalmost 12 years ago

4 comments

vjeuxalmost 12 years ago
At Facebook, we are using a similar technique to crop images. The part that is different is that instead of using the center of all the faces, we find the viewport that maximizes the number of faces to be displayed. <a href="http:&#x2F;&#x2F;blog.vjeux.com&#x2F;2012&#x2F;image&#x2F;best-cropping-position.html" rel="nofollow">http:&#x2F;&#x2F;blog.vjeux.com&#x2F;2012&#x2F;image&#x2F;best-cropping-position.html</a>
评论 #5908712 未加载
fideloperalmost 12 years ago
Thumbor (<a href="https:&#x2F;&#x2F;github.com&#x2F;globocom&#x2F;thumbor" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;globocom&#x2F;thumbor</a>) is a great Python library for helping cropping which uses openCV for facial detection (as well as other algorithms for finding &quot;interesting&quot; parts of photos)
评论 #5907389 未加载
geuisalmost 12 years ago
I implemented something like this with OpenCV late last year using a node.js wrapper. We were looking to do something similar for image cropping. What I found was that OCV was kind of unreliable. A major percent of the time, it would mark knees as faces or even wrinkles in pictures of women&#x27;s handbags. It was a side project and we didn&#x27;t pursue it, so I was unclear if there was a way to train it over time. If so, did you do this to improve your accuracy?<p>I also used PIL a few years back to do image generation from text. I kept running into memory fragmentation bugs, weird artifacts creeping into images, etc. I haven&#x27;t been able to recommend PIL for any serious work since then. Has this gotten better?
评论 #5908702 未加载
hellopatalmost 12 years ago
I built something like this to automate cropping headshots for players in major sports. I figured it would work flawlessly after I ran a few test images through, but it turns out that it failed detecting a face or gave the wrong coordinates about 20% of the time.<p>I&#x27;m curious to know what the success rate of SeatGeek&#x27;s process is.
评论 #5907377 未加载
评论 #5907126 未加载