Skip to content
/ face Public

A PHP Library for face detection (age, gender, smile, etc.) on image.

License

Notifications You must be signed in to change notification settings

khrigo/face

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Face Detection

A PHP Library for face detection (and age, gender, etc.) on image.

Used: Microsoft's Face API

Installation

composer install

Add your subscription key in the FaceDetection.php class

private $subscriptionKey = '';

Usage

use Khrigo\Face\FaceDetection as FaceDetection;
require_once __DIR__ . '/vendor/autoload.php';

$image = array(
    'url' => '' // url on image
);

$face = new FaceDetection($image);

Set attributes

$face->setAttributes(['gender', 'age']);

Detecting a face

$face->getFaces();

About

A PHP Library for face detection (age, gender, smile, etc.) on image.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages