Home » Microsoft » AI-102 v.2 » Which client and method should you use?
You have receipts that are accessible from a URL.
You need to extract data from the receipts by using Form Recognizer and the SDK. The solution must use a prebuilt model.
Which client and method should you use?
A. the FormRecognizerClient client and the StartRecognizeContentFromUri method
B. the FormTrainingClient client and the StartRecognizeContentFromUri method
C. the FormRecognizerClient client and the StartRecognizeReceiptsFromUri method
D. the FormTrainingClient client and the StartRecognizeReceiptsFromUri method
Correct Answer: D
Explanation/Reference:
Explanation:
To analyze receipts from a URL, use the StartRecognizeReceiptsFromUri method Example code: private static async Task AnalyzeReceipt( FormRecognizerClient recognizerClient, string receiptUri)
{ RecognizedFormCollection receipts = await recognizerClient.StartRecognizeReceiptsFromUri(new Uri(receiptUrl)).WaitForCompletionAsync();
Reference:
https://docs.microsoft.com/en-us/azure/applied-ai-services/form-recognizer/quickstarts/client-library