Skip to content

Commit bcdd9c1

Browse files
authored
Updated intro comments
1 parent 61e40aa commit bcdd9c1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Vision/ComputerVision/src/main/java/ComputerVisionQuickstart.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
*
44
* Prerequisites:
55
* - Download/clone the project.
6-
* - From your Azure account, get your subscription key and region, then
6+
* - From your Azure account, get your subscription key and the endpoint, which should look similar to:
7+
https://westus.api.cognitive.microsoft.com/ (make sure your region matches your subscription), then
78
* set as environment variables with the names COMPUTER_VISION_SUBSCRIPTION_KEY and COMPUTER_VISION_REGION.
89
* - Create a 'src/main/java/resources' folder and add images (landmark.jpg and printed_text.jpg) from here:
910
* https://github.com/Azure-Samples/cognitive-services-sample-data-files/tree/master/ComputerVision/Images
@@ -61,7 +62,7 @@ public static void main(String[] args) {
6162
System.exit(0);
6263
}
6364

64-
String computerVisionRegion = System.getenv("COMPUTER_VISION_REGION");
65+
String computerVisionRegion = System.getenv("COMPUTER_VISION_ENDPOINT");
6566
if (computerVisionRegion == null) {
6667
System.out.println("\n\nPlease set the COMPUTERVISION_REGION environment variable.\n**Note that you might need to restart your shell or IDE.**\n");
6768
System.exit(0);

0 commit comments

Comments
 (0)