From the course: Azure AI for Developers: Process Images with Azure AI
Unlock this course with a free trial
Join today to access over 25,600 courses taught by industry experts.
Face detection, analysis, and recognition - Azure AI Services Tutorial
From the course: Azure AI for Developers: Process Images with Azure AI
Face detection, analysis, and recognition
- [Instructor] In this code sample, we will perform face detection, analysis, and recognition. Here are sample images of the faces we'll use in this notebook. To determine the input requirements, you may visit this website specified in the notebook. You first install the library. We then load the Azure Configurations. This notebook requires an Azure AI face resource with the proper approvals. In our sample, the resource must have the Facial Verification feature approved. We then create a FaceAdmin Client and a FaceClient. The FaceAdmin Client is primarily used for administrative tasks related to the face service, such as creating face lists and person groups. The FaceClient is used for performing face detection, recognition and analysis tasks. You can read more about the key concepts in this website. We create a helper function to read the file contents from a specified path in this notebook. To detect and analyze faces, we call the detect method. We specify the image content, the…