A PHP Library for face detection (and age, gender, etc.) on image.
Used: Microsoft's Face API
composer install
Add your subscription key in the FaceDetection.php class
private $subscriptionKey = '';
use Khrigo\Face\FaceDetection as FaceDetection;
require_once __DIR__ . '/vendor/autoload.php';
$image = array(
'url' => '' // url on image
);
$face = new FaceDetection($image);
$face->setAttributes(['gender', 'age']);
$face->getFaces();