2017 © Pedro Peláez
 

library laravel-face-detect

A Laravel Package for Face Detection and Cropping in Images.

image

softon/laravel-face-detect

A Laravel Package for Face Detection and Cropping in Images.

  • Saturday, September 2, 2017
  • by softon
  • Repository
  • 4 Watchers
  • 18 Stars
  • 2,079 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 2 Open issues
  • 2 Versions
  • 9 % Grown

The README.md

Laravel-Face-Detect

A Laravel Package for Face Detection and Cropping in Images., (*1)

Installation, (*2)

  1. Edit the composer.json add to the require array & run composer update
     "softon/laravel-face-detect": "dev-master" 
     composer update 
  2. Add the service provider to the config/app.php file in Laravel
     'Softon\LaravelFaceDetect\FaceDetectServiceProvider', 
  3. Add an alias for the Facade to the config/app.php file in Laravel
     'FaceDetect' => 'Softon\LaravelFaceDetect\Facades\FaceDetect', 
  4. Publish the config file by running
     php artisan vendor:publish 

Usage, (*3)

To extract the Face and save the cropped image use..., (*4)

use \Softon\LaravelFaceDetect\Facades\FaceDetect;


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

To extract the Face and return the cropping coordinates without cropping the image..., (*5)

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..., (*6)

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., (*7)

The Versions

02/09 2017

dev-master

9999999-dev

A Laravel Package for Face Detection and Cropping in Images.

  Sources   Download

MIT

The Requires

 

by Shiburaj

laravel face detection

09/05 2016

v0.1.0

0.1.0.0

A Laravel Package for Face Detection and Cropping in Images.

  Sources   Download

MIT

The Requires

 

by Shiburaj

laravel face detection