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.
If you don't have an Azure subscription, create a free account before you begin.
- A Face API subscription key. You can get a free trial subscription key from Try Cognitive Services. Or, follow the instructions in Create a Cognitive Services account to subscribe to the Face API service and get your key.
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.
Next, explore the Face API reference documentation to learn more about the supported scenarios.