Site icon Rajeev Singh | Coder, Blogger, YouTuber

[Archive] Azure Cognitive Services Face API

Learn the power of Cognitive Services in Azure and develop a Logic App that can detect faces using the Face API. This powerful combination allows us to gain valuable insights about faces, images, and emotions.

Introduction to Azure Cognitive Services:

Azure AI services help developers and organizations rapidly create intelligent, cutting-edge, market-ready, and responsible applications with out-of-the-box and pre-built and customizable APIs and models. Example applications include natural language processing for conversations, search, monitoring, translation, speech, vision, and decision-making.

Note:

This blog aims to provide references to various articles and services that were available in 2018. However, it is crucial to acknowledge that due to the passage of time, many of these services may no longer be actively supported by Microsoft. For instance, Cognitive Service has been renamed to Azure AI services, while Face API is now referred to as Azure AI Face service.

Despite these changes, this blog will still offer you an informative overview of the use case for Face API

Ref: https://learn.microsoft.com/en-us/azure/ai-services/what-are-ai-services

Use Case:

What are Cognitive Services?

https://docs.microsoft.com/en-us/azure/cognitive-services/welcome

Microsoft Cognitive Services (formerly Project Oxford) are a set of APIs, SDKs, and services available to developers to make their applications more intelligent, engaging, and discoverable.

Microsoft Cognitive Services expands on Microsoft’s evolving portfolio of machine learning APIs and enables developers to easily add intelligent features – such as emotion and video detection; facial, speech, and vision recognition; and speech and language understanding – into their applications.

What is Cognitive Services Vision API?

The Vision API is a state-of-the-art image processing algorithm that helps to moderate content automatically and build personalized apps by returning insights about faces, images, and emotions.

This API has several operations like

What is Face API?

https://learn.microsoft.com/en-us/azure/ai-services/computer-vision/overview-identity

Register & get Face API Key to use in your app:

https://azure.microsoft.com/en-in/try/cognitive-services/?api=face-api

Steps: Prerequisites:

A.   Create Cognitive Service:

Select Category -> AI+ Machine Learning

Pricing: Select Free

B.   One Drive:

Configure one drive.

C.   Create Blob Storage

Create blobstorage.

And images as a container

Logic App – Steps:

Logic Apps Flow:

1.     Create/Configure one Drive:

Search OneDrive & Select – When a File is Created Trigger

Sign in:

Select the Folder you configured for OneDrive:

Select the Interval:

2.     Create a blob Connector.

Now, Search Blob and Select -> Create Blob

Enter the Blob URL & then the Folder path will appear.

Enter Below details:

3.     Face API – Detect Faces

Search -> Face API -> Select Detect Faces

Configure Face API:

Connection:

Enter any Name.

API key:

Register for the API & get the Key from the below URL:

https://azure.microsoft.com/en-in/try/cognitive-services/

Select face API-> click on -> Get API Key

Endpoint:  Copy Your Endpoint& enter in face API connector:

https://westcentralus.api.cognitive.microsoft.com/face/v1.0

Now, Enter the Blob image URL& drop the Path after the URL.

4.     Send Email

Add Action: For each Loop & add Gmail:

5. Run Logic App Now:

That’s it!

Conclusion:

In a matter of minutes, we were able to harness the power of Cognitive Services in Azure and develop a Logic App that can detect faces using the Face API. This powerful combination allows us to gain valuable insights about faces, images, and emotions.

It’s important to note that the example provided here utilizes a previous version of Azure AI services.

However, in an upcoming article, we will be showcasing the latest service offerings available. Stay tuned for the latest advancements in Azure AI!

Exit mobile version