PHP code example of ridvanbaluyos / face

1. Go to this page and download the library: Download ridvanbaluyos/face library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ridvanbaluyos / face example snippets



// namespace and autoloaders
use Ridvanbaluyos\Face\FaceDetection as FaceDetection;
/people/i/2014/database/140831/justin-bieber-300.jpg',
);

// instantiate face detection object
$face = new FaceDetection($image);

$face->getFaces();


$face->analyzeFaceLandmarks()->getFaces();


$face->analyzeFaceAttributes()->getFaces();


$face->analyzeFaceLandmarks()->analyzeFaceAttributes()->getFaces();


$face->analyzeAll()->getFaces();