PHP code example of hymns / microsoft-cognitive-face
1. Go to this page and download the library: Download hymns/microsoft-cognitive-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/ */
hymns / microsoft-cognitive-face example snippets
// include your composer dependencies
iveFace\Client('YOUR_APP_KEY', 'YOUR_REGION');
$faces = $client->face()->detectFacesFromImage('URL_IMAGE');
print_r($faces);
// include your composer dependencies
iveFace\Client('YOUR_APP_KEY', 'YOUR_REGION');
$result = $client->face()->verifyTwoFaces('FACE_ID_1', 'FACE_ID_2');
print_r($result);