Page 1 of 1
Face detection
Posted: 2010-03-31T05:35:28-07:00
by snibgo
Is anyone is planning a "face detection" system for ImageMagick?
As many cameras now offer this facility, I suppose the software requirements are fairly simple and well-known (but I don't know the rate of false positives and false negatives).
It would be a neat feature when we want to process faces and background differently. It might work by (a) creating a number of cropped images and/or (b) writing a value for each pixel to the alpha channel, 0 = "I am sure this isn't part of a face", 100% = "I am sure this is part of a face", 50% = "I don't know".
Re: Face detection
Posted: 2010-03-31T07:29:06-07:00
by Bonzo
There is face detection code using GD and php; I was going to look into modifying it to IM but do not have the time.
http://www.svay.com/blog/index/post/200 ... -OpenCV%29
There are other methods but I can not remember how they work now.
Re: Face detection
Posted: 2012-10-30T10:01:57-07:00
by sibaagtm
Hi, folks --
We shoot employee portraits which are then checked into our enterprise content management system, which uses third-party products like ImageMagick to generate portrait renditions. These portraits are used throughout our organization, including thumbnail-sized portrait renditions on our door/access badges, and it has been concerning that such renditions are created manually: we download one of the larger renditions, crop it to include only the subject's face plus some border for hair, and scale down to thumbnail size. Without the crop, the face in the thumbnail rendition is too small to be used effectively for security purposes. And since our portraits are used in so many other ways, shooting only just the face in the first place is not effective or appropriate. Lastly, for content management purposes, we would much prefer to shoot only one image of each employee.
We continue to hunt for a command-line-based image converter that could take, for example, a "--faceCrop +20" flag that would identify the pattern of eyes, nose, and mouth, apply a rectangular crop (widened as desired ("+20")), and produce the desired rendition as otherwise directed by the remaining command-line arguments.
This thread is a couple of years old, but the other related ImageMagick threads that I could find were, shall we say, well-aged also. So since this thread seems like the best fit, I'll ask here: are there any updates to the plans to empower ImageMagick to handle cropping down to a portrait subject's face?
Thanks for your time.
Don
Re: Face detection
Posted: 2012-10-30T10:35:15-07:00
by fmw42
IM has no face detection built in function that I know about. But as a suggestion I would check out OpenCV and see if they do.