ImageAnalysisAsyncClient Class   
	- java.
lang. Object  - com.
azure. ai. vision. imageanalysis. ImageAnalysisAsyncClient  
- com.
 
public final class ImageAnalysisAsyncClient
Initializes a new instance of the asynchronous ImageAnalysisClient type.
//
 // Create an asynchronous Image Analysis client with API key authentication.
 //
 ImageAnalysisAsyncClient client = new ImageAnalysisClientBuilder()
     .endpoint(endpoint)
     .credential(new KeyCredential(key))
     .buildAsyncClient();
//
 // Create an asynchronous Image Analysis client with Entra ID authentication.
 //
 ImageAnalysisAsyncClient client = new ImageAnalysisClientBuilder()
     .endpoint(endpoint)
     .credential(new DefaultAzureCredentialBuilder().build())
     .buildAsyncClient();
		Method Summary
Methods inherited from java.lang.Object
Method Details
analyze
public Mono<ImageAnalysisResult> analyze(BinaryData imageData, List<VisualFeatures> visualFeatures, ImageAnalysisOptions options)
Performs a single Image Analysis operation on a given image buffer.
Parameters:
Returns:
 //
 // Asynchronous analysis of an image file (sample.jpg), using all visual features,
 // with all options set. You will likely need fewer visual features and only
 // some (or no) options set.
 //
 ImageAnalysisOptions options = new ImageAnalysisOptions()
     .setLanguage("en")
     .setGenderNeutralCaption(true)
     .setSmartCropsAspectRatios(Arrays.asList(0.9, 1.33))
     .setModelVersion("latest");
 Mono<ImageAnalysisResult> result = client.analyze(
     BinaryData.fromFile(new File("sample.jpg").toPath()),
     Arrays.asList(
         VisualFeatures.SMART_CROPS,
         VisualFeatures.CAPTION,
         VisualFeatures.DENSE_CAPTIONS,
         VisualFeatures.OBJECTS,
         VisualFeatures.PEOPLE,
         VisualFeatures.READ,
         VisualFeatures.TAGS),
     options);
 
 analyzeFromUrl
public Mono<ImageAnalysisResult> analyzeFromUrl(String imageUrl, List<VisualFeatures> visualFeatures, ImageAnalysisOptions options)
Performs a single Image Analysis operation on a give image URL.
Parameters:
Returns:
 //
 // Asynchronous analysis of an image file (https://aka.ms/azsdk/image-analysis/sample.jpg),
 // using all visual features, with all options set. You will likely need fewer visual features
 // and only some (or no) options set.
 //
 ImageAnalysisOptions options = new ImageAnalysisOptions()
     .setLanguage("en")
     .setGenderNeutralCaption(true)
     .setSmartCropsAspectRatios(Arrays.asList(0.9, 1.33))
     .setModelVersion("latest");
 Mono<ImageAnalysisResult> result = client.analyzeFromUrl(
     "https://aka.ms/azsdk/image-analysis/sample.jpg",
     Arrays.asList(
         VisualFeatures.SMART_CROPS,
         VisualFeatures.CAPTION,
         VisualFeatures.DENSE_CAPTIONS,
         VisualFeatures.OBJECTS,
         VisualFeatures.PEOPLE,
         VisualFeatures.READ,
         VisualFeatures.TAGS),
     options);
 
 analyzeFromUrlWithResponse
public Mono<Response<ImageAnalysisResult>> analyzeFromUrlWithResponse(String imageUrl, List<VisualFeatures> visualFeatures, ImageAnalysisOptions imageAnalysisOptions, RequestOptions requestOptions)
Performs a single Image Analysis operation on a give image URL, while allowing customization of the HTTP request and access to HTTP request and response details. This is not commonly used.
Parameters:
Returns:
analyzeWithResponse
public Mono<Response<ImageAnalysisResult>> analyzeWithResponse(BinaryData imageData, List<VisualFeatures> visualFeatures, ImageAnalysisOptions imageAnalysisOptions, RequestOptions requestOptions)
Performs a single Image Analysis operation on a given image buffer, while allowing customization of the HTTP request and access to HTTP request and response details. This is not commonly used.
Parameters:
Returns: