你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

FormRecognizerClient.StartRecognizeReceiptsAsync Method

Definition

Recognizes values from one or more receipts.

See receipt fields for a list of available fields on a receipt.

public virtual System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeReceiptsOperation> StartRecognizeReceiptsAsync(System.IO.Stream receipt, Azure.AI.FormRecognizer.RecognizeReceiptsOptions recognizeReceiptsOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member StartRecognizeReceiptsAsync : System.IO.Stream * Azure.AI.FormRecognizer.RecognizeReceiptsOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeReceiptsOperation>
override this.StartRecognizeReceiptsAsync : System.IO.Stream * Azure.AI.FormRecognizer.RecognizeReceiptsOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeReceiptsOperation>
Public Overridable Function StartRecognizeReceiptsAsync (receipt As Stream, Optional recognizeReceiptsOptions As RecognizeReceiptsOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RecognizeReceiptsOperation)

Parameters

receipt
Stream

The stream containing the one or more receipts to recognize values from.

recognizeReceiptsOptions
RecognizeReceiptsOptions

A set of options available for configuring the recognize request. For example, specify the content type of the form, the locale of the form, or whether or not to include form elements.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A RecognizeReceiptsOperation to wait on this long-running operation. Its Value upon successful completion will contain the extracted receipt.

Applies to