Extract Printed Text from PDF Documents using Read OCR Container | Microsoft Azure AI Solution

Extract Printed Text from PDF Documents using Read OCR Container

Question

You are tasked to extract printed text from PDF documents using the Read OCR container.

This solution option will meet your security and compliance requirements.

You use the docker run command to run the Read OCR container on an On-Prem host.

Review the bash statement given below and complete the code by selecting three answer choices.

docker run --rm -it -p 5000:5000 --memory 18g --cpus 8 \ mcr.microsoft.com/azure-cognitive-services/vision/………………………………………..

\ Eula=..........................................

\ Billing=..........................................

\ ApiKey={API_KEY}

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

Correct Answers: A, D and E

Here is the completed statement.

<pre>docker run --rm -it -p 5000:5000 --memory 18g --cpus 8 \

mcr.microsoft.com/azure-cognitive-services/vision/read:3.2 \

Eula=accept \

Billing={ENDPOINT_URI} \

ApiKey={API_KEY}

</pre>Option A is correct because the value “accept” indicates that you have accepted the end-user license agreement.

Option B is incorrect because docker <image id> is not a suited value for the parameters maintained in the statement.

Option C is incorrect because “apply” is not a suited value for the parameters maintained in the statement.

Option D is correct because Read API will provide the capability to read the printed text from the PDF documents.

Option E is correct because Endpoint URI provides the endpoint to connect the cognitive resource for billing purposes.

Reference:

To learn more about Read OCR containers, use the link given below:

The given bash statement is used to run a Docker container for extracting printed text from PDF documents using the Read OCR container, which is part of Azure Cognitive Services. The command uses the "docker run" command to launch the container on an On-Prem host with specified configurations and parameters.

Let's go through the options to be selected from the answer choices:

  • A. accept: This option is part of the EULA parameter, which is used to accept the End User License Agreement (EULA) for the OCR container. By selecting this option, you are agreeing to the terms and conditions of using the container.

  • B. <image-id>: This option is used to specify the OCR container image ID to be used for running the container. However, this answer choice does not provide any image ID to use.

  • C. apply: This option is not a valid parameter for the OCR container.

  • D. read:3.2: This option is part of the OCR container image ID and specifies the version of the container to be used. However, this answer choice does not provide the full OCR container image ID.

  • E. {ENDPOINT_URI}: This option is part of the API Key parameter and specifies the endpoint URI to use for the OCR container. The endpoint URI is a URL provided by Azure Cognitive Services that identifies the specific instance of the OCR container that you want to use.

Therefore, the correct answer choices to complete the code in the given bash statement are A, D, and E. This would result in a complete and functional command for running the Read OCR container with the required configurations and parameters, including accepting the EULA, specifying the container image ID with the version, and providing the API Key with the endpoint URI.