AI-102 · Question #28
You are developing a method that uses the Azure AI Vision client library. The method will perform optical character recognition (OCR) in images. The method has the following code. During testing…
The correct answer is B. Add code to verify the results.Status value. D. Wrap the call to GetReadResultAsync within a loop that contains a delay. results = await client.GetReadResultAsync(Guid.Parse(operationId)); } while ((results.Status == OperationStatusCodes.Running || results.Status == OperationStatusCodes.NotStarted)); https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/dotnet/Comput…
Question
Exhibit
Options
- ARemove the Guid.Parse(operationId) parameter.
- BAdd code to verify the results.Status value.
- CAdd code to verify the status of the txtHeaders.Status value.
- DWrap the call to GetReadResultAsync within a loop that contains a delay.
How the community answered
(21 responses)- A24% (5)
- B62% (13)
- C14% (3)
Explanation
results = await client.GetReadResultAsync(Guid.Parse(operationId)); } while ((results.Status == OperationStatusCodes.Running || results.Status == OperationStatusCodes.NotStarted)); https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/dotnet/Comput erVision/ComputerVisionQuickstart.cs
Topics
Community Discussion
No community discussion yet for this question.
