Looking to hire Laravel developers? Try LaraJobs

laravel-face-detect maintained by softon

Description
A Laravel Package for Face Detection and Cropping in Images.
Author
Last update
2023/03/15 06:32 (dev-master)
License
Links
Downloads
26 302

Comments
comments powered by Disqus

Laravel-Face-Detect

A Laravel Package for Face Detection and Cropping in Images.

Installation

Usage

To extract the Face and save the cropped image use...

use \Softon\LaravelFaceDetect\Facades\FaceDetect;


FaceDetect::extract($imagefilepath)->save($savefilepath);

To extract the Face and return the cropping coordinates without cropping the image...

use \Softon\LaravelFaceDetect\Facades\FaceDetect;


$crop_params = FaceDetect::extract($imagefilepath)->face;   // return array with x,y,width

To detect if face is found in a image...

use \Softon\LaravelFaceDetect\Facades\FaceDetect;


$crop_params = FaceDetect::extract($imagefilepath)->face_found;     // returns true/false

You may edit the config file facedetect.php in the config directory to add aditional padding to the cropped Images.