You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ink Recognizer Cognitive Service provides recognition of digital ink. It takes the digital ink stroke data as input and provides a document tree with individual recognition units as output. This project has sample code to demonstrate a few ways developers can take advantage of the service.
14
+
Ink Recognizer Cognitive Service provides recognition of digital ink. It takes the digital ink stroke data as input and provides a document tree with individual recognition units as output. This project has sample code to demonstrate a few ways developers can take advantage of the service. This sample also shows use case for [Xaml Island](https://docs.microsoft.com/en-us/windows/uwp/xaml-platform/xaml-host-controls) on InkCanvas, which import UWP controls into desktop applications.
16
15
17
16
## Features
18
17
19
-
This project framework provides the following features:
18
+
This sample provides the following features:
20
19
21
-
* Capturing very basic inking input.
22
-
23
-
* Creating the JSON payload using the JSON schema used by Ink Recognizer.
24
-
25
-
* Calling the Ink Recognizer REST APIs with the JSON payload
26
-
27
-
* Parsing the JSON response from the service, build the document tree and parse it.
20
+
* Collect ink strokes from Xaml Island InkCanvas
21
+
* Create JSON request following InkRecognizer service's schema.
22
+
* Call the InkRecognizer REST API
23
+
* Parse the JSON reponse to build the document tree
28
24
29
25
## Contents
30
26
31
27
| File/folder | Description |
32
28
|-------------|-------------|
33
29
|`src`| Sample source code. |
34
-
|`.gitignore`| Define what to ignore at commit time. |
35
-
|`CHANGELOG.md`| List of changes to the sample. |
36
-
|`CONTRIBUTING.md`| Guidelines for contributing to the sample. |
37
30
|`README.md`| This README file. |
38
31
|`LICENSE`| The license for the sample. |
39
32
@@ -42,17 +35,36 @@ This project framework provides the following features:
* Windows SDK Version >= 10.0.18362. You can install it from Visual Studio Installer under **Indivial components** tab, or download from [Windows Insider Preview SDK](https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewSDK)
46
-
* If you install the Windows SDK into a customized path, please edit **src\NoteTaker.csproj** to change the HintPath of **Windows.winmd** to the correct path
47
-
* Requires subscription key from [Azure Cognitive Services](https://docs.microsoft.com/en-us/azure/cognitive-services/authentication)
48
-
49
-
## Build the Sample
50
-
51
-
1. Clone or download this sample repository `git clone https://github.com/Azure-Samples/cognitive-services-csharp-wpf-ink-recognition.git`
52
-
2. Start Visual Studio and select **File > Open > Project/Solution** and open "NoteTaker.sln"
53
-
3. Replace "[YOUR SUBSCRIPTION KEY]" in MainWindows.xaml.cs with valid subscription key
54
-
4. Press Ctrl+Shift+B, or select **Build > Build Solution**
55
-
56
-
## Run the sample
57
-
58
-
To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging.
* Windows SDK Version >= 10.0.18362. You can install it from Visual Studio Installer under **Indivial components** tab, or download from [Windows 10 SDK](https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk)
40
+
* If you install the Windows SDK into a customized path, please edit **src\NoteTaker.csproj** to change the HintPath of **Windows.winmd** to the correct path
*[Xaml Island for WPF](https://www.nuget.org/packages/Microsoft.Toolkit.Wpf.UI.Controls)
45
+
* Subscription key from [Azure Cognitive Services](https://docs.microsoft.com/en-us/azure/cognitive-services/authentication)
46
+
* Windows Build 1903 or higher is required for Xaml island features
47
+
48
+
### Build the Sample
49
+
50
+
1. Clone or download this sample repository `git clone https://github.com/Azure-Samples/cognitive-services-csharp-wpf-ink-recognition.git`
51
+
2. Start Visual Studio and select **File > Open > Project/Solution** and open **src\NoteTaker.sln**
52
+
3. Replace "[YOUR SUBSCRIPTION KEY]" in **src\MainWindows.xaml.cs** with valid subscription key
53
+
4. Select **Build > Build Solution**
54
+
55
+
### Run the sample
56
+
57
+
* To debug the sample and then run it, select **Debug > Start Debugging**. To run the sample without debugging, select **Debug > Start Without Debugging**.
58
+
* Write down something on the upper region of the app
59
+
* After one second of inactivity, the ink will be recognized and the result will be visible in the lower region of the app
60
+
61
+
## Resources
62
+
63
+
Additional resources related the project are located below
64
+
65
+
*[Learn more about Ink Recognizer](http://go.microsoft.com/fwlink/?LinkID=2084782)
66
+
*[Ink Recognizer API Reference](http://go.microsoft.com/fwlink/?LinkID=2085147)
0 commit comments