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".
Face detection
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Face detection
snibgo's IM pages: im.snibgo.com
Re: Face detection
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.
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
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
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
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Face detection
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.