ImageAnalysisClient.AnalyzeAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AnalyzeAsync(BinaryData, VisualFeatures, ImageAnalysisOptions, CancellationToken) |
Performs a single Image Analysis operation. |
AnalyzeAsync(Uri, VisualFeatures, ImageAnalysisOptions, CancellationToken) |
Performs a single Image Analysis operation. |
AnalyzeAsync(BinaryData, VisualFeatures, ImageAnalysisOptions, CancellationToken)
- Source:
- ImageAnalysisClient.cs
- Source:
- ImageAnalysisClient.cs
Performs a single Image Analysis operation.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Vision.ImageAnalysis.ImageAnalysisResult>> AnalyzeAsync (BinaryData imageData, Azure.AI.Vision.ImageAnalysis.VisualFeatures visualFeatures, Azure.AI.Vision.ImageAnalysis.ImageAnalysisOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AnalyzeAsync : BinaryData * Azure.AI.Vision.ImageAnalysis.VisualFeatures * Azure.AI.Vision.ImageAnalysis.ImageAnalysisOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Vision.ImageAnalysis.ImageAnalysisResult>>
override this.AnalyzeAsync : BinaryData * Azure.AI.Vision.ImageAnalysis.VisualFeatures * Azure.AI.Vision.ImageAnalysis.ImageAnalysisOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Vision.ImageAnalysis.ImageAnalysisResult>>
Public Overridable Function AnalyzeAsync (imageData As BinaryData, visualFeatures As VisualFeatures, Optional options As ImageAnalysisOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ImageAnalysisResult))
Parameters
- imageData
- BinaryData
The image to be analyzed.
- visualFeatures
- VisualFeatures
A flags enumeration indicating what visual feature types to return. Valid visual feature types include: Tags, Caption, DenseCaptions, Objects, Read, SmartCrops, People. At least one visual feature must be specified for Image Analysis.
- options
- ImageAnalysisOptions
A structure containing the per call analysis options.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
imageData
is null.
Applies to
AnalyzeAsync(Uri, VisualFeatures, ImageAnalysisOptions, CancellationToken)
- Source:
- ImageAnalysisClient.cs
- Source:
- ImageAnalysisClient.cs
Performs a single Image Analysis operation.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Vision.ImageAnalysis.ImageAnalysisResult>> AnalyzeAsync (Uri imageUri, Azure.AI.Vision.ImageAnalysis.VisualFeatures visualFeatures, Azure.AI.Vision.ImageAnalysis.ImageAnalysisOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AnalyzeAsync : Uri * Azure.AI.Vision.ImageAnalysis.VisualFeatures * Azure.AI.Vision.ImageAnalysis.ImageAnalysisOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Vision.ImageAnalysis.ImageAnalysisResult>>
override this.AnalyzeAsync : Uri * Azure.AI.Vision.ImageAnalysis.VisualFeatures * Azure.AI.Vision.ImageAnalysis.ImageAnalysisOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Vision.ImageAnalysis.ImageAnalysisResult>>
Public Overridable Function AnalyzeAsync (imageUri As Uri, visualFeatures As VisualFeatures, Optional options As ImageAnalysisOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ImageAnalysisResult))
Parameters
- imageUri
- Uri
The image to be analyzed.
- visualFeatures
- VisualFeatures
A flags enumeration indicating what visual feature types to return. Valid visual feature types include: Tags, Caption, DenseCaptions, Objects, Read, SmartCrops, People. At least one visual feature must be specified for Image Analysis.
- options
- ImageAnalysisOptions
A structure containing the per call analysis options.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
imageUri
is null.
Applies to
Azure SDK for .NET