Let's now look at the next API in the Vision category, the Face API.
This can be used to detect human faces and compare similar ones. It will also indicate facial attributes, including age, emotion, gender, and hair color.
Let's take a look at an example image:
If we send this input image to the API, we get the following output in JSON format:
//output omitted
"faceAttributes": {
"hair": {
"bald": 0.01,
"invisible": false,
"hairColor": [
{
"color": "blond",
"confidence": 1.0
},
{
"color": "brown",
"confidence": 0.87
},
//omitted
]
},
"smile": 0.018,
"headPose": {
"pitch": 0.0,
...