ozziest/face-detector

Face detector for Laravel 4.

dev-master 2014-08-25 08:00 UTC

This package is not auto-updated.

Last update: 2024-05-11 14:28:29 UTC


README

This class detect one face in images.

Installation

To install through composer, simply put the following in your composer.json file:

{
    "require": {
        "ozziest/face-detector": "dev-master",
    }
}

After installing the package, open your Laravel config file app/config/app.php and add the following lines.

In the $providers array add the following service provider for this package;

'Ozziest\FaceDetector\FaceDetectorServiceProvider',

Add the FaceDetector facades to the aliases in app/config/app.php:

'FaceDetector' => 'Ozziest\FaceDetector\Facades\FaceDetector',

Usage

FaceDetector::detect('image.jpg')->toJpeg();

Methods

  • toJpeg()
  • toJson()
  • getFace()

Requirements

PHP5 with GD

License

GNU GPL v2 (See LICENSE.txt)