Amazon Rekognition
Developer Guide

Exercise 2: Analyze Faces in an Image (Console)

This section shows you how to use the Amazon Rekognition console to detect faces and analyze facial attributes in an image. When you provide an image that contains a face as input, the service detects the face in the image, analyzes the facial attributes of the face, and then returns a percent confidence score for the face and the facial attributes detected in the image. For more information, see Amazon Rekognition: How It Works.

For example, if you choose the following sample image as input, Amazon Rekognition detects it as a face and returns confidence scores for the face and the facial attributes detected.

The following shows the sample response.

If there are multiple faces in the input image, Rekognition detects up to 15 faces in the image. Each face detected is marked with a square. When you click the area marked with a square on a face, Rekognition displays the confidence score of that face and its attributes detected in the Faces | Confidence pane.

Analyze Faces in an Image You Provide

You can upload your own image or provide the URL to the image in the Amazon Rekognition console.


The image must be less than 5MB in size and must be of JPEG or PNG format.

To analyze a face in an image you provide

  1. Open to the Amazon Rekognition console.

  2. Choose Facial analysis.

  3. Do one of the following:

    • Upload an image – Choose Upload, go to the location where you stored your image, and then select the image.

    • Use a URL – Type the URL in the text box, and then choose Go.

  4. View the confidence score of one the faces detected and its facial attributes in the Faces | Confidence pane.

  5. If there are multiple faces in the image, choose one of the other faces to see its attributes and scores.