Face Detection using pure PHP: No OpenCV required

0
2221

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

https://youthsforum.com/wp-content/uploads/2019/05/face.zip

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 :

Comments are closed.