Skip to content

Commit c85f03e

Browse files
authored
Initial commit
1 parent 5c5643f commit c85f03e

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

java/InkRecognition/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
topic: sample
3+
languages:
4+
- java
5+
products:
6+
- azure
7+
- cognitive services
8+
---
9+
10+
# Ink Recognizer REST API samples
11+
12+
These samples are quickstarts that show how to use the Ink Recognizer API.
13+
14+
## Prerequisites
15+
16+
- An [Azure Ink Recognizer resource](https://portal.azure.com/#blade/Microsoft_Azure_Marketplace/MarketplaceOffersBlade/selectedMenuItemId/home/searchQuery/ink%20recognizer)
17+
- For the sample in the quickstart folder:
18+
* copy/paste the `.java` file into your IDE or text editor,
19+
* add the `example-ink-strokes.json` file as a resource to your project or working directory,
20+
* create a lib folder in your working directory (or IDE project) and add the Java jar libraries needed: <br>
21+
httpclient-4.5.11+ <br>
22+
slf4j-jdk14-1.7.28+ <br>
23+
httpcore-4.4.13+ <br>
24+
commons-logging-1.2+ <br>
25+
jackson-databind-2.10.2+ <br>
26+
jackson-annotations-2.10.2+ <br>
27+
jackson-core-2.10.2+ <br>
28+
- Add your key and endpoint from your Azure resource to your environment variables with the variable names suggested in the sample.
29+
30+
## Running the samples
31+
- If trying the Android app, upload the Recognizer repo into Android Studio, add environment variables for key/endpoint, and run.
32+
- For the quickstart, run from your IDE or using the below commands from the command line: <br>
33+
`javac RecognizeInk.java -cp .;lib\* -encoding UTF-8` <br>
34+
`java -cp .;lib\* RecognizeInk`
35+
36+
## Resources
37+
- Ink Recognizer documentation: <br>
38+
https://docs.microsoft.com/en-us/azure/cognitive-services/ink-recognizer/index
39+
- Ink Recognizer API:<br>
40+
https://dev.cognitive.microsoft.com/docs/services/inkrecognizer/operations/inkRecognizerPUT

0 commit comments

Comments
 (0)