Compartir a través de


FormRecognizerClient.AnalyzeWithCustomModelWithHttpMessagesAsync Método

Definición

Análisis del formulario

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))

Parámetros

id
Guid

Identificador de modelo con el que analizar el documento.

formStream
Stream

Archivo pdf o imagen (jpg,png) que se va a analizar.

keys
IList<String>

Lista opcional de claves conocidas para la que extraer los valores.

customHeaders
Dictionary<String,List<String>>

Encabezados que se agregarán a la solicitud.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Implementaciones

Excepciones

Se produce cuando la operación devolvió un código de estado no válido

Se produce cuando no se puede deserializar la respuesta

Se produce cuando un parámetro obligatorio es NULL

Se produce cuando un parámetro obligatorio es NULL

Comentarios

El documento que se va a analizar debe ser de un tipo de contenido compatible: "application/pdf", "image/jpeg" o "image/png". La respuesta no solo contiene la información extraída del formulario analizado, sino también información sobre el contenido que no se extrajo junto con un motivo.

Se aplica a