Skip Navigation

Face

Face verification

Check the likelihood that two faces belong to the same person. The API will return a confidence score about how likely it is that the two faces belong to one person.

See it in action

Verification result: The two faces belong to the same person. Confidence is 0.7349.

Want to build this?

Face detection

Detect one or more human faces in an image and get back face rectangles for where in the image the faces are, along with face attributes which contain machine learning-based predictions of facial features. The face attribute features available are: Age, Emotion, Gender, Pose, Smile, and Facial Hair along with 27 landmarks for each face in the image.

See it in action

Gender female
Age 24
Glasses ReadingGlasses
Emotion Happiness
Detection result:
JSON:
[ { "faceId": "31e62906-2e52-449b-b1cb-94b639387a06", "faceRectangle": { "top": 128, "left": 459, "width": 224, "height": 224 }, "faceAttributes": { "hair": { "bald": 0.1, "invisible": false, "hairColor": [ { "color": "brown", "confidence": 0.99 }, { "color": "black", "confidence": 0.57 }, { "color": "red", "confidence": 0.36 }, { "color": "blond", "confidence": 0.34 }, { "color": "gray", "confidence": 0.15 }, { "color": "other", "confidence": 0.13 } ] }, "smile": 1.0, "headPose": { "pitch": 0.0, "roll": -16.9, "yaw": 16.7 }, "gender": "female", "age": 24.0, "facialHair": { "moustache": 0.0, "beard": 0.0, "sideburns": 0.0 }, "glasses": "ReadingGlasses", "makeup": { "eyeMakeup": true, "lipMakeup": true }, "emotion": { "anger": 0.0, "contempt": 0.0, "disgust": 0.0, "fear": 0.0, "happiness": 1.0, "neutral": 0.0, "sadness": 0.0, "surprise": 0.0 }, "occlusion": { "foreheadOccluded": false, "eyeOccluded": false, "mouthOccluded": false }, "accessories": [ { "type": "glasses", "confidence": 1.0 } ], "blur": { "blurLevel": "low", "value": 0.0 }, "exposure": { "exposureLevel": "goodExposure", "value": 0.48 }, "noise": { "noiseLevel": "low", "value": 0.0 } }, "faceLandmarks": { "pupilLeft": { "x": 504.8, "y": 206.8 }, "pupilRight": { "x": 602.5, "y": 178.4 }, "noseTip": { "x": 593.5, "y": 247.3 }, "mouthLeft": { "x": 529.8, "y": 300.5 }, "mouthRight": { "x": 626.0, "y": 277.3 }, "eyebrowLeftOuter": { "x": 461.0, "y": 186.8 }, "eyebrowLeftInner": { "x": 541.9, "y": 178.9 }, "eyeLeftOuter": { "x": 490.9, "y": 209.0 }, "eyeLeftTop": { "x": 509.1, "y": 199.5 }, "eyeLeftBottom": { "x": 509.3, "y": 213.9 }, "eyeLeftInner": { "x": 529.0, "y": 205.0 }, "eyebrowRightInner": { "x": 579.2, "y": 169.2 }, "eyebrowRightOuter": { "x": 633.0, "y": 136.4 }, "eyeRightInner": { "x": 590.5, "y": 184.5 }, "eyeRightTop": { "x": 604.2, "y": 171.5 }, "eyeRightBottom": { "x": 608.4, "y": 184.0 }, "eyeRightOuter": { "x": 623.8, "y": 173.7 }, "noseRootLeft": { "x": 549.8, "y": 200.3 }, "noseRootRight": { "x": 580.7, "y": 192.3 }, "noseLeftAlarTop": { "x": 557.2, "y": 234.6 }, "noseRightAlarTop": { "x": 603.2, "y": 225.1 }, "noseLeftAlarOutTip": { "x": 545.4, "y": 255.5 }, "noseRightAlarOutTip": { "x": 615.9, "y": 239.5 }, "upperLipTop": { "x": 591.1, "y": 278.4 }, "upperLipBottom": { "x": 593.2, "y": 288.7 }, "underLipTop": { "x": 597.1, "y": 308.0 }, "underLipBottom": { "x": 600.3, "y": 324.8 } } } ]

Want to build this?

Emotion recognition

The Face API now integrates emotion recognition, returning the confidence across a set of emotions for each face in the image such as anger, contempt, disgust, fear, happiness, neutral, sadness, and surprise. These emotions are understood to be cross-culturally and universally communicated with particular facial expressions.

See it in action

Anger 0.00001
Contempt 0.00012
Disgust 0.00003
Fear 0.00059
Happiness 0.06631
Neutral 0.00555
Sadness 0.00001
Surprise 0.92739
Detection result:
1 faces detected

JSON:
[ { "faceRectangle": { "top": 141, "left": 130, "width": 162, "height": 162 }, "scores": { "anger": 9.29041E-06, "contempt": 0.000118981574, "disgust": 3.15619363E-05, "fear": 0.000589638, "happiness": 0.06630674, "neutral": 0.00555004273, "sadness": 7.44669524E-06, "surprise": 0.9273863 } } ]

Want to build this?

Face identification

Face API enables you to search, identify, and match faces in your private repository of up to 1 million people.

Similar face search

Easily find similar-looking faces. Given a collection of faces and a new face as a query, this API will return a collection of similar faces.

Face grouping

Organize many unidentified faces together into groups, based on their visual similarity.

Explore the Cognitive Services APIs

Computer Vision

Distill actionable information from images

Face

Detect, identify, analyze, organize, and tag faces in photos

Video Indexer

Unlock video insights

Content Moderator

Automated image, text, and video moderation

Custom Vision PREVIEW

Easily customize your own state-of-the-art computer vision models for your unique use case

Text Analytics

Easily evaluate sentiment and topics to understand what users want

Translator Text

Easily conduct machine translation with a simple REST API call

Bing Spell Check

Detect and correct spelling mistakes in your app

Content Moderator

Automated image, text, and video moderation

Language Understanding

Teach your apps to understand commands from your users

Speaker Recognition PREVIEW

Use speech to identify and verify individual speakers

Speech Services

Unified speech services for speech-to-text, text-to-speech and speech translation

QnA Maker

Distill information into conversational, easy-to-navigate answers

Ready to supercharge your app?