Skip to content

Commit 87c55a1

Browse files
committed
Review comments
1 parent c128188 commit 87c55a1

File tree

2 files changed

+42
-47
lines changed

2 files changed

+42
-47
lines changed

articles/ai-services/computer-vision/includes/how-to-guides/analyze-image-40-java.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ ms.subservice: computer-vision
66
ms.topic: include
77
ms.date: 08/01/2023
88
ms.author: pafarley
9+
ms.custom: references_regions
910
---
1011

1112
## Prerequisites
@@ -78,8 +79,7 @@ Visual features 'Captions' and 'DenseCaptions' are only supported in the followi
7879
> [!NOTE]
7980
> The REST API uses the terms **Smart Crops** and **Smart Crops Aspect Ratios**. The SDK uses the terms **Crop Suggestions** and **Cropping Aspect Ratios**. They both refer to the same service operation. Similarly, the REST API users the term **Read** for detecting text in the image, whereas the SDK uses the term **Text** for the same operation.
8081
81-
82-
Create a new [ImageAnalysisOptions](/java/api/com.azure.ai.vision.imageanalysis.imageanalysisoptions) object and specify the visual features you'd like to extract, by call the [setFeatures](/java/api/com.azure.ai.vision.imageanalysis.imageanalysisoptions#com-azure-ai-vision-imageanalysis-imageanalysisoptions-setfeatures(java-util-enumset(com-azure-ai-vision-imageanalysis-imageanalysisfeature))) method. [ImageAnalysisFeature](/java/api/com.azure.ai.vision.imageanalysis.imageanalysisfeature) enum defines the supported values.
82+
Create a new [ImageAnalysisOptions](/java/api/com.azure.ai.vision.imageanalysis.imageanalysisoptions) object and specify the visual features you'd like to extract, by calling the [setFeatures](/java/api/com.azure.ai.vision.imageanalysis.imageanalysisoptions#com-azure-ai-vision-imageanalysis-imageanalysisoptions-setfeatures(java-util-enumset(com-azure-ai-vision-imageanalysis-imageanalysisfeature))) method. [ImageAnalysisFeature](/java/api/com.azure.ai.vision.imageanalysis.imageanalysisfeature) enum defines the supported values.
8383

8484
[!code-java[](~/azure-ai-vision-sdk/docs/learn.microsoft.com/java/image-analysis/how-to/ImageAnalysis.java?name=visual_features)]
8585

articles/ai-services/computer-vision/includes/quickstarts-sdk/image-analysis-java-sdk-40.md

Lines changed: 40 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -37,52 +37,47 @@ Use the Image Analysis client SDK for Java to analyze an image to read text and
3737
Open a console window and create a new folder for your quickstart application.
3838

3939
1. Open a text editor and copy the following content to a new file. Save the file as `pom.xml` in your project directory
40-
41-
<!-- [!INCLUDE][](https://raw.githubusercontent.com/Azure-Samples/azure-ai-vision-sdk/main/docs/learn.microsoft.com/java/image-analysis/quick-start/pom.xml)] -->
42-
43-
```xml
44-
<project xmlns="http://maven.apache.org/POM/4.0.0"
45-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
46-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
47-
<modelVersion>4.0.0</modelVersion>
48-
<groupId>azure.ai.vision.imageanalysis.samples</groupId>
49-
<artifactId>image-analysis-quickstart</artifactId>
50-
<version>0.0</version>
51-
<dependencies>
52-
<!-- https://mvnrepository.com/artifact/com.azure/azure-ai-vision-imageanalysis -->
53-
<dependency>
54-
<groupId>com.azure</groupId>
55-
<artifactId>azure-ai-vision-imageanalysis</artifactId>
56-
<version>0.15.1-beta.1</version>
57-
</dependency>
58-
<!-- https://mvnrepository.com/artifact/com.azure/azure-core-http-netty -->
59-
<dependency>
60-
<groupId>com.azure</groupId>
61-
<artifactId>azure-core-http-netty</artifactId>
62-
<version>1.13.6</version>
63-
</dependency>
64-
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
65-
<dependency>
66-
<groupId>org.slf4j</groupId>
67-
<artifactId>slf4j-api</artifactId>
68-
<version>2.0.7</version>
69-
</dependency>
70-
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-simple -->
71-
<dependency>
72-
<groupId>org.slf4j</groupId>
73-
<artifactId>slf4j-simple</artifactId>
74-
<version>2.0.7</version>
75-
</dependency>
76-
</dependencies>
77-
</project>
78-
```
79-
40+
<!-- [!INCLUDE][](https://raw.githubusercontent.com/Azure-Samples/azure-ai-vision-sdk/main/docs/learn.microsoft.com/java/image-analysis/quick-start/pom.xml)] -->
41+
```xml
42+
<project xmlns="http://maven.apache.org/POM/4.0.0"
43+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
45+
<modelVersion>4.0.0</modelVersion>
46+
<groupId>azure.ai.vision.imageanalysis.samples</groupId>
47+
<artifactId>image-analysis-quickstart</artifactId>
48+
<version>0.0</version>
49+
<dependencies>
50+
<!-- https://mvnrepository.com/artifact/com.azure/azure-ai-vision-imageanalysis -->
51+
<dependency>
52+
<groupId>com.azure</groupId>
53+
<artifactId>azure-ai-vision-imageanalysis</artifactId>
54+
<version>0.15.1-beta.1</version>
55+
</dependency>
56+
<!-- https://mvnrepository.com/artifact/com.azure/azure-core-http-netty -->
57+
<dependency>
58+
<groupId>com.azure</groupId>
59+
<artifactId>azure-core-http-netty</artifactId>
60+
<version>1.13.6</version>
61+
</dependency>
62+
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
63+
<dependency>
64+
<groupId>org.slf4j</groupId>
65+
<artifactId>slf4j-api</artifactId>
66+
<version>2.0.7</version>
67+
</dependency>
68+
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-simple -->
69+
<dependency>
70+
<groupId>org.slf4j</groupId>
71+
<artifactId>slf4j-simple</artifactId>
72+
<version>2.0.7</version>
73+
</dependency>
74+
</dependencies>
75+
</project>
76+
```
8077
1. Install the SDK and dependencies by running the following in the project directory:
81-
82-
```console
83-
mvn clean dependency:copy-dependencies
84-
```
85-
78+
```console
79+
mvn clean dependency:copy-dependencies
80+
```
8681
1. Once the operation succeeds, verify that the folders `target\dependency` were creating and they contain `.jar` files.
8782

8883
For more information, see the [SDK installation guide](../../sdk/install-sdk.md?pivots=programming-language-java).

0 commit comments

Comments
 (0)