cimage icon indicating copy to clipboard operation
cimage copied to clipboard

Face detection functionality

Open Fshamri opened this issue 9 years ago • 2 comments

This is great but lacks face detection functionality, I hope you can do this feature to this fantastic library.

Thanks

Fshamri avatar Jul 18 '15 18:07 Fshamri

I assume that the main usage of face detection would be to automatically crop an image based on one or several faces detected on the image. Another usage could be to find and blur faces. But the basic idea is to find the x and y of the face(s) in the image, and then somehow use that info to process the image.

I guess that one option would be to use OpenCV as base for finding the faces. Another option would be to use some PHP port, there are a few smaller ones out there, for example mauricesvay/php-facedetection.

This is related to #59 which also speaks about "smart cropping" by edge detection and entropy.

mosbth avatar Jul 20 '15 19:07 mosbth

Another usage where face detection is useful is for automatic red-eye removal.

mosbth avatar Jul 25 '15 10:07 mosbth