ozziest / face-detector
Face detector for Laravel 4.
Installs: 191
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
pkg:composer/ozziest/face-detector
Requires
- php: >=5.4.0
- ext-gd: *
- illuminate/support: 4.2.*
This package is not auto-updated.
Last update: 2025-02-01 18:03:20 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)