Quickstart: Detect faces in an image using the Face REST API and Python

In this quickstart, you will use the Azure Face REST API with Python to detect human faces in an image. The script will draw frames around the faces and superimpose gender and age information on the image.

A man and a woman, each with a rectangle drawn around their faces and age and sex displayed on the image

If you don't have an Azure subscription, create a free account before you begin.

Prerequisites

Run the Jupyter notebook

You can run this quickstart as a Jupyter notebook on MyBinder. To launch Binder, select the button below. Then follow the instructions in the notebook.

Binder

Next steps

Next, explore the Face API reference documentation to learn more about the supported scenarios.