You can read the complete documentation on the Google Cloud Vision API and the provided SDK's on cloud.google.com.
This code example uses their PHP SDK and requires Composer to be installed locally.
- Run
composer install
- Copy the
.env.example
file to.env
and and fill in the path to your Google application credentials
Simply run php index.php
, your images with face detection will be saved in /dataset-output/google-cloud-vision-api
.