Partager via


FormRecognizerClient.AnalyzeWithCustomModelWithHttpMessagesAsync Méthode

Définition

Analyser le formulaire

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.FormRecognizer.Models.AnalyzeResult>> AnalyzeWithCustomModelWithHttpMessagesAsync (Guid id, System.IO.Stream formStream, System.Collections.Generic.IList<string> keys = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AnalyzeWithCustomModelWithHttpMessagesAsync : Guid * System.IO.Stream * System.Collections.Generic.IList<string> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.FormRecognizer.Models.AnalyzeResult>>
override this.AnalyzeWithCustomModelWithHttpMessagesAsync : Guid * System.IO.Stream * System.Collections.Generic.IList<string> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.FormRecognizer.Models.AnalyzeResult>>
Public Function AnalyzeWithCustomModelWithHttpMessagesAsync (id As Guid, formStream As Stream, Optional keys As IList(Of String) = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of AnalyzeResult))

Paramètres

id
Guid

Identificateur de modèle avec laquelle analyser le document.

formStream
Stream

Un fichier de document ou d’image pdf (jpg,png) à analyser.

keys
IList<String>

Liste facultative des clés connues pour laquelle extraire les valeurs.

customHeaders
Dictionary<String,List<String>>

En-têtes qui seront ajoutés à la requête.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Implémente

Exceptions

Levée lorsque l’opération a retourné un code status non valide

Levée lorsque la réponse ne peut pas être désérialisée

Levée lorsqu’un paramètre requis a la valeur Null

Levée lorsqu’un paramètre requis a la valeur Null

Remarques

Le document à analyser doit être d’un type de contenu pris en charge : « application/pdf », « image/jpeg » ou « image/png ». La réponse contient non seulement les informations extraites du formulaire analysé, mais également des informations sur le contenu qui n’a pas été extrait avec une raison.

S’applique à