Update docs metadata
This commit is contained in:
Родитель
fc9cb6b48e
Коммит
b8ba3488da
|
@ -1,12 +1,12 @@
|
|||
---
|
||||
title: Azure Image Analysis client library for Java
|
||||
keywords: Azure, java, SDK, API, azure-ai-vision-imageanalysis, vision
|
||||
ms.date: 01/22/2024
|
||||
ms.date: 02/13/2024
|
||||
ms.topic: reference
|
||||
ms.devlang: java
|
||||
ms.service: vision
|
||||
---
|
||||
# Azure Image Analysis client library for Java - version 1.0.0-beta.1
|
||||
# Azure Image Analysis client library for Java - version 1.0.0-beta.2
|
||||
|
||||
|
||||
The Image Analysis service provides AI algorithms for processing images and returning information about their content. In a single service call, you can extract one or more visual features from the image simultaneously, including getting a caption for the image, extracting text shown in the image (OCR) and detecting objects. For more information on the service and the supported visual features, see [Image Analysis overview][image_analysis_overview], and the [Concepts][image_analysis_concepts] page.
|
||||
|
@ -41,7 +41,7 @@ Use the Image Analysis client library to:
|
|||
<dependency>
|
||||
<groupId>com.azure</groupId>
|
||||
<artifactId>azure-ai-vision-imageanalysis</artifactId>
|
||||
<version>1.0.0-beta.1</version>
|
||||
<version>1.0.0-beta.2</version>
|
||||
</dependency>
|
||||
```
|
||||
[//]: # ({x-version-update-end})
|
||||
|
@ -179,12 +179,11 @@ This example is similar to the above, except it calls the `analyze` method and p
|
|||
import com.azure.ai.vision.imageanalysis.models.ImageAnalysisOptions;
|
||||
import com.azure.ai.vision.imageanalysis.models.ImageAnalysisResult;
|
||||
import com.azure.ai.vision.imageanalysis.models.VisualFeatures;
|
||||
import java.net.URL;
|
||||
import java.util.Arrays;
|
||||
```
|
||||
```java caption-url-snippet
|
||||
ImageAnalysisResult result = client.analyze(
|
||||
new URL("https://aka.ms/azsdk/image-analysis/sample.jpg"), // imageUrl: the URL of the image to analyze
|
||||
ImageAnalysisResult result = client.analyzeFromUrl(
|
||||
"https://aka.ms/azsdk/image-analysis/sample.jpg", // imageUrl: the URL of the image to analyze
|
||||
Arrays.asList(VisualFeatures.CAPTION), // visualFeatures
|
||||
new ImageAnalysisOptions().setGenderNeutralCaption(true)); // options: Set to 'true' or 'false' (relevant for CAPTION or DENSE_CAPTIONS visual features)
|
||||
|
||||
|
@ -242,12 +241,11 @@ import com.azure.ai.vision.imageanalysis.models.DetectedTextLine;
|
|||
import com.azure.ai.vision.imageanalysis.models.DetectedTextWord;
|
||||
import com.azure.ai.vision.imageanalysis.models.ImageAnalysisResult;
|
||||
import com.azure.ai.vision.imageanalysis.models.VisualFeatures;
|
||||
import java.net.URL;
|
||||
import java.util.Arrays;
|
||||
```
|
||||
```java ocr-url-snippet
|
||||
ImageAnalysisResult result = client.analyze(
|
||||
new URL("https://aka.ms/azsdk/image-analysis/sample.jpg"), // imageUrl: the URL of the image to analyze
|
||||
ImageAnalysisResult result = client.analyzeFromUrl(
|
||||
"https://aka.ms/azsdk/image-analysis/sample.jpg", // imageUrl: the URL of the image to analyze
|
||||
Arrays.asList(VisualFeatures.READ), // visualFeatures
|
||||
null); // options: There are no options for READ visual feature
|
||||
|
||||
|
@ -299,9 +297,12 @@ Message: Status code 400, "{"error":{"code":"InvalidRequest","message":"Image fo
|
|||
|
||||
### Enable HTTP request/response logging
|
||||
|
||||
Reviewing the HTTP request sent or response received over the wire to the Image Analysis service can be useful in troubleshooting. The Image Analysis client library supports a built-in console logging framework for temporary debugging purposes. It also supports more advanced logging using the [SLF4J](https://www.slf4j.org/) interface. For detailed information see [Use logging in the Azure SDK for Java](https://learn.microsoft.com/azure/developer/java/sdk/troubleshooting-overview#use-logging-in-the-azure-sdk-for-java).
|
||||
Reviewing the HTTP request sent or response received over the wire to the Image Analysis service can be useful in troubleshooting. This can be done in two ways:
|
||||
|
||||
The sections below discusses enabling console logging using the built-in framework.
|
||||
1. The Image Analysis client library supports a built-in console logging framework for temporary debugging purposes. It also supports more advanced logging using the [SLF4J](https://www.slf4j.org/) interface. For detailed information see [Use logging in the Azure SDK for Java](https://learn.microsoft.com/azure/developer/java/sdk/troubleshooting-overview#use-logging-in-the-azure-sdk-for-java).
|
||||
1. By getting access to the [Response](https://learn.microsoft.com/java/api/com.azure.core.http.rest.response) object, and from it the [HttpRequest](https://learn.microsoft.com/java/api/com.azure.core.http.httprequest) object, and printing information provided by these objects. See [SampleCaptionImageFileWithResponse.java](https://github.com/Azure/azure-sdk-for-java/blob/azure-ai-vision-imageanalysis_1.0.0-beta.2/sdk/vision/azure-ai-vision-imageanalysis/src/samples/java/com/azure/ai/vision/imageanalysis/SampleCaptionImageFileWithResponse.java) and [SampleOcrImageUrlWithResponseAsync.java](https://github.com/Azure/azure-sdk-for-java/blob/azure-ai-vision-imageanalysis_1.0.0-beta.2/sdk/vision/azure-ai-vision-imageanalysis/src/samples/java/com/azure/ai/vision/imageanalysis/SampleOcrImageUrlWithResponseAsync.java).
|
||||
|
||||
We recommend you enable console logging (option #1). The sections below discusses enabling console logging using the built-in framework.
|
||||
|
||||
#### By setting environment variables
|
||||
|
||||
|
@ -382,6 +383,6 @@ additional questions or comments.
|
|||
[image_analysis_concepts]: https://learn.microsoft.com/azure/ai-services/computer-vision/concept-tag-images-40
|
||||
[vision_studio]: https://aka.ms/vision-studio/image-analysis
|
||||
[samples]: https://aka.ms/azsdk/image-analysis/samples/java
|
||||
[sdk_source_code]: https://github.com/Azure/azure-sdk-for-java/tree/azure-ai-vision-imageanalysis_1.0.0-beta.1/sdk/vision/azure-ai-vision-imageanalysis/src/main/java/com/azure/ai/vision/imageanalysis
|
||||
[sdk_source_code]: https://github.com/Azure/azure-sdk-for-java/tree/azure-ai-vision-imageanalysis_1.0.0-beta.2/sdk/vision/azure-ai-vision-imageanalysis/src/main/java/com/azure/ai/vision/imageanalysis
|
||||
[supported_regions]: https://learn.microsoft.com/azure/ai-services/computer-vision/concept-describe-images-40
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"Name": "azure-ai-vision-imageanalysis",
|
||||
"Version": "1.0.0-beta.1",
|
||||
"Version": "1.0.0-beta.2",
|
||||
"DevVersion": null,
|
||||
"DirectoryPath": "sdk/vision/azure-ai-vision-imageanalysis",
|
||||
"ServiceDirectory": "vision",
|
||||
|
@ -10,5 +10,5 @@
|
|||
"SdkType": "client",
|
||||
"IsNewSdk": true,
|
||||
"ArtifactName": "azure-ai-vision-imageanalysis",
|
||||
"ReleaseStatus": "2024-01-09"
|
||||
"ReleaseStatus": "2024-02-09"
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче