In this post, we will be implementing a Face Detection library in PHP. We don’t need any libraries like OpenCV for this Face Detection to work. Use of already trained data will be used to detect face in an image.
1. Download FaceDetection library from this url
http://codediesel.com/downloads/face-detect
2. You will find the following code in example.php
<?php include "FaceDetector.php"; $face_detect = new Face_Detector('detectioin.dat'); $face_detect->face_detect('sample-image3.jpg'); $face_detect->toJpeg(); ?>
Refer this video for full guidance :