File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
java/InkRecognition/quickstart Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1414
1515public 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 {
You can’t perform that action at this time.
0 commit comments