How to detect face in image using PHP
In brief: Three libraries for face detection with PHP: PHP-script with OpenCV, PHP FaceDetection, and Python FaceDetect script. FaceDetector library with OpenCV uses Haar Cascades. PHP FaceDetection can find only one face on a photo. Smart face detection is used in social networks, image editors, video chats, smart captcha, time tracking programs, etc. Option №1 FaceDetector on PHP is quite a successfull solution which uses OpenCV. FaceDetector works stably with various skin tones, low quality pictures, lots of faces and people wearing glasses. Operation algorithm Face detection here is based on Viola-Jones method, Haar Cascades (rectangular primitives), and AdaBoost learning algorithm. The primitives are black and white rectangles of different sizes which are placed on the image. After superimposing their correlation with a picture is being read. FaceDetector installation First, packages install is needed: