Skip to content

Commit cee5448

Browse files
authored
Merge pull request #101 from wiazur/patch-60
Updated endpoint and key
2 parents 3b06248 + 4e27a07 commit cee5448

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

java/InkRecognition/quickstart/RecognizeInk.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414

1515
public class RecognizeInk {
1616

17-
// Replace the subscriptionKey string value with your valid subscription key.
18-
private static final String subscriptionKey = "YOUR_SUBSCRIPTION_KEY";
19-
// Replace the dataPath string with a path to the JSON formatted ink stroke data file.
20-
public static final String rootUrl = "https://api.cognitive.microsoft.com";
17+
// Add your Azure Ink Recognition subscription key to your environment variables.
18+
private static final String subscriptionKey = System.getenv("INK_RECOGNITION_SUBSCRIPTION_KEY");
19+
20+
// Add your Azure Ink Recognition endpoint to your environment variables.
21+
public static final String rootUrl = System.getenv("INK_RECOGNITION_ENDPOINT");
2122
public static final String inkRecognitionUrl = "/inkrecognizer/v1.0-preview/recognize";
23+
// Replace the dataPath string with a path to the JSON formatted ink stroke data file.
2224
private static final String dataPath = "PATH_TO_INK_STROKE_DATA";
2325

2426
public static void main(String[] args) throws Exception {

0 commit comments

Comments
 (0)