Create Cognitive Resource in Azure for Extracting Text from Images | AI-102 Exam

Create Cognitive Resource in Azure for Extracting Text from Images

Question

You are tasked to create a cognitive resource in Azure that you will use to extract printed or handwritten text from images.

You plan to create it in the East US Azure region using the standard pricing tier.

Assuming that you have met all the prerequisites such as creating the resource group, service principal and installing client libraries, choose the most appropriate create_resource syntax that you will call in your application for this purpose.

(select one answer choice)

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Correct Answer: C.

Option A is incorrect because CustomVision.Prediction is used totest images programmatically by submitting them to the Prediction API endpoint.

Option B is incorrect because Text Translation is used to translate language for a given text.

Option C is correct because you would need to create a Computer Vision resource to use Optical Character Recognition in the East US using Standard pricing tier in order to meet the requirements.

Option D is incorrect because Text analytics is used in mining insights using NLP.

It is used for sentiment analysis and analyzing opinions.

Reference:

To learn more about creating a Cognitive Services resource using the Azure Management client library, use the link given below:

The most appropriate option for creating a cognitive resource in Azure to extract printed or handwritten text from images is option C:

python
create_resource(client, "Extract_Text", "ComputerVision", "S1", "eastus");

Here's why:

  • create_resource is a method that creates a new Azure resource with the specified parameters.
  • client refers to an instance of an Azure client object, which is used to manage Azure resources.
  • "Extract_Text" is the name of the resource that will be created. This can be any name you choose.
  • "ComputerVision" is the Azure service that provides optical character recognition (OCR) capabilities for extracting text from images. This is the correct service to use for the given task.
  • "S1" refers to the pricing tier that will be used for the resource. S1 is the standard pricing tier, which provides higher performance and more features than the basic tier.
  • "eastus" is the Azure region where the resource will be created. East US is the region specified in the question, so this is the correct choice.

Option A, "CustomVision.Prediction", is not the correct service to use for this task. Custom Vision is a service for training custom image recognition models, and it does not provide OCR capabilities.

Option B, "TextTranslation", is also not the correct service to use for this task. Text Translation is a service for translating text between different languages, and it does not provide OCR capabilities.

Option D, "TextAnalytics", is a service for analyzing text sentiment, key phrases, and entities. While this service can extract text from images, it is not designed specifically for OCR tasks like extracting printed or handwritten text. The Computer Vision service provides more accurate and reliable OCR capabilities.