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

FormRecognizerClientExtensions.AnalyzeWithCustomModelAsync 方法

定义

重载

AnalyzeWithCustomModelAsync(IFormRecognizerClient, Guid, Stream, IList<String>, CancellationToken)

分析表单

AnalyzeWithCustomModelAsync(IFormRecognizerClient, Guid, Stream, String, IList<String>, CancellationToken)

AnalyzeWithCustomModelAsync(IFormRecognizerClient, Guid, Stream, IList<String>, CancellationToken)

分析表单

public static System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.FormRecognizer.Models.AnalyzeResult> AnalyzeWithCustomModelAsync (this Microsoft.Azure.CognitiveServices.FormRecognizer.IFormRecognizerClient operations, Guid id, System.IO.Stream formStream, System.Collections.Generic.IList<string> keys = default, System.Threading.CancellationToken cancellationToken = default);
static member AnalyzeWithCustomModelAsync : Microsoft.Azure.CognitiveServices.FormRecognizer.IFormRecognizerClient * Guid * System.IO.Stream * System.Collections.Generic.IList<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.FormRecognizer.Models.AnalyzeResult>
<Extension()>
Public Function AnalyzeWithCustomModelAsync (operations As IFormRecognizerClient, id As Guid, formStream As Stream, Optional keys As IList(Of String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AnalyzeResult)

参数

operations
IFormRecognizerClient

此扩展方法的操作组。

id
Guid

用于分析文档的模型标识符。

formStream
Stream

要分析的 pdf 文档或图像 (jpg,png) 文件。

keys
IList<String>

要为其提取值的已知键的可选列表。

cancellationToken
CancellationToken

取消标记。

返回

注解

要分析的文档必须是受支持的内容类型 -“application/pdf”、“image/jpeg”或“image/png”。 响应不仅包含已分析表单的提取信息,还包含有关未提取的内容以及原因的信息。

适用于

AnalyzeWithCustomModelAsync(IFormRecognizerClient, Guid, Stream, String, IList<String>, CancellationToken)

public static System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.FormRecognizer.Models.AnalyzeResult> AnalyzeWithCustomModelAsync (this Microsoft.Azure.CognitiveServices.FormRecognizer.IFormRecognizerClient operations, Guid id, System.IO.Stream formStream, string contentType, System.Collections.Generic.IList<string> keys = default, System.Threading.CancellationToken cancellationToken = default);
static member AnalyzeWithCustomModelAsync : Microsoft.Azure.CognitiveServices.FormRecognizer.IFormRecognizerClient * Guid * System.IO.Stream * string * System.Collections.Generic.IList<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.FormRecognizer.Models.AnalyzeResult>
<Extension()>
Public Function AnalyzeWithCustomModelAsync (operations As IFormRecognizerClient, id As Guid, formStream As Stream, contentType As String, Optional keys As IList(Of String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AnalyzeResult)

参数

id
Guid
formStream
Stream
contentType
String
keys
IList<String>
cancellationToken
CancellationToken

返回

适用于