次の方法で共有


ImageModeration.OCRUrlInputWithHttpMessagesAsync メソッド

定義

画像内で見つかった指定した言語のテキストをすべて返します。 入力に言語が指定されていない場合は、既定で英語に設定されます。

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.ContentModerator.Models.OCR>> OCRUrlInputWithHttpMessagesAsync (string language, string contentType, Microsoft.Azure.CognitiveServices.ContentModerator.Models.BodyModel imageUrl, bool? cacheImage = default, bool? enhanced = False, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member OCRUrlInputWithHttpMessagesAsync : string * string * Microsoft.Azure.CognitiveServices.ContentModerator.Models.BodyModel * Nullable<bool> * Nullable<bool> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.ContentModerator.Models.OCR>>
override this.OCRUrlInputWithHttpMessagesAsync : string * string * Microsoft.Azure.CognitiveServices.ContentModerator.Models.BodyModel * Nullable<bool> * Nullable<bool> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.ContentModerator.Models.OCR>>
Public Function OCRUrlInputWithHttpMessagesAsync (language As String, contentType As String, imageUrl As BodyModel, Optional cacheImage As Nullable(Of Boolean) = Nothing, Optional enhanced As Nullable(Of Boolean) = False, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of OCR))

パラメーター

language
String

用語の言語。

contentType
String

コンテンツの種類。

imageUrl
BodyModel

イメージの URL。

cacheImage
Nullable<Boolean>

提出された画像を将来の使用のために保持するかどうか。省略すると、既定値は false になります。

enhanced
Nullable<Boolean>

True に設定すると、画像は追加の処理を経て、追加の候補が表示されます。

拡張が true に設定されている場合、image/tiff はサポートされません

注: これは応答時間に影響します。

customHeaders
Dictionary<String,List<String>>

要求に追加されるヘッダー。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

実装

例外

操作が無効な状態コードを返したときにスローされます

応答を逆シリアル化できない場合にスローされます

必須パラメーターが null の場合にスローされます

必須パラメーターが null の場合にスローされます

適用対象