File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Vision/ComputerVision/src/main/java Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 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 \n Please set the COMPUTERVISION_REGION environment variable.\n **Note that you might need to restart your shell or IDE.**\n " );
6768 System .exit (0 );
You can’t perform that action at this time.
0 commit comments