Unfortunately Microsoft doesn't provide a PHP SDK for their Face API.
We use a custom MicrosoftFaceAPI
class witch sends cURL requests to their API.
This code example requires Composer to be installed locally.
- Run
composer install
- Copy the
.env.example
file to.env
and and fill in your Microsoft Face API subscription key
Simply run php index.php
, your images with face detection will be saved in /dataset-output/microsoft-azure-face-api
.