Skip to content

Commit 9e4900c

Browse files
authored
Update java-print-text.md
1 parent 1f6299f commit 9e4900c

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

articles/cognitive-services/Computer-vision/QuickStarts/java-print-text.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,12 @@ To create and run the sample, do the following steps:
5858

5959
```java
6060
public class Main {
61-
// **********************************************
62-
// *** Update or verify the following values. ***
63-
// **********************************************
6461

6562
// Add your Computer Vision subscription key and endpoint to your environment variables.
66-
// After setting, close and then re-open your command shell or project for the changes to take effect.
67-
String subscriptionKey = System.getenv("COMPUTER_VISION_SUBSCRIPTION_KEY");
68-
String endpoint = ("COMPUTER_VISION_ENDPOINT");
63+
private static String subscriptionKey = System.getenv("COMPUTER_VISION_SUBSCRIPTION_KEY");
64+
private static String endpoint = System.getenv("COMPUTER_VISION_ENDPOINT");
6965

70-
private static final String uriBase = endpoint +
71-
"vision/v2.1/ocr";
66+
private static final String uriBase = endpoint + "vision/v3.0/ocr";
7267

7368
private static final String imageToAnalyze =
7469
"https://upload.wikimedia.org/wikipedia/commons/thumb/a/af/" +

0 commit comments

Comments
 (0)