PHP code example of ibuffer / faceplusplus

1. Go to this page and download the library: Download ibuffer/faceplusplus 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/ */

    

ibuffer / faceplusplus example snippets


$api_key = 'api key(请修改)';
$api_secret = 'api secret(请修改)';
$facepp = new facepp($api_key, $api_secret);
$params = array(
    'url'          =>   '图片链接(请修改)',
    'attribute'    =>   'gender,age,race,smiling,glass,pose'
);
$response = $facepp->execute('/detection/detect',$params);