Udostępnij za pośrednictwem


FormRecognizerClient.StartRecognizeContent Method

Definition

Recognizes layout elements from one or more passed-in forms.

public virtual Azure.AI.FormRecognizer.Models.RecognizeContentOperation StartRecognizeContent (System.IO.Stream form, Azure.AI.FormRecognizer.RecognizeContentOptions recognizeContentOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member StartRecognizeContent : System.IO.Stream * Azure.AI.FormRecognizer.RecognizeContentOptions * System.Threading.CancellationToken -> Azure.AI.FormRecognizer.Models.RecognizeContentOperation
override this.StartRecognizeContent : System.IO.Stream * Azure.AI.FormRecognizer.RecognizeContentOptions * System.Threading.CancellationToken -> Azure.AI.FormRecognizer.Models.RecognizeContentOperation
Public Overridable Function StartRecognizeContent (form As Stream, Optional recognizeContentOptions As RecognizeContentOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As RecognizeContentOperation

Parameters

form
Stream

The stream containing one or more forms to recognize elements from.

recognizeContentOptions
RecognizeContentOptions

A set of options available for configuring the recognize request. For example, specify the content type of the form, the language of the form, and which pages in a multi-page document to analyze.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A RecognizeContentOperation to wait on this long-running operation. Its Value upon successful completion will contain layout elements extracted from the form.

Applies to