File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
articles/cognitive-services/Computer-vision/QuickStarts Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -58,17 +58,12 @@ To create and run the sample, do the following steps:
58
58
59
59
``` java
60
60
public class Main {
61
- // **********************************************
62
- // *** Update or verify the following values. ***
63
- // **********************************************
64
61
65
62
// 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" );
69
65
70
- private static final String uriBase = endpoint +
71
- " vision/v2.1/ocr" ;
66
+ private static final String uriBase = endpoint + " vision/v3.0/ocr" ;
72
67
73
68
private static final String imageToAnalyze =
74
69
" https://upload.wikimedia.org/wikipedia/commons/thumb/a/af/" +
You can’t perform that action at this time.
0 commit comments