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)
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:
pythoncreate_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.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.