Click here to Skip to main content
12,950,832 members (59,203 online)
Rate this:
 
Please Sign up or sign in to vote.
Hi, I am developing a note taking application in C#/XAML. I want a user to write anything on canvas with InkManager of "Windows.UI.Input.Inking". Then I want to display it as text onto canvas and then I want to save those recognized text in either text or image format.

I have checked MSDN[^] documentation, but still I am confused how to start. How can I get ink strokes onto canvas and how can I recognize that ? Please anyone can guide me ? I need it ASAP for my app.

I have tried some coding, but it is not working.

private async void Recognize_Click(object sender, RoutedEventArgs e)
{
    IReadOnlyList<InkRecognitionResult> x = await _inkManager.RecognizeAsync(InkRecognitionTarget.All);
    IReadOnlyList<String> text;
    foreach (InkRecognitionResult i in x)
    {
        text = i.GetTextCandidates();
    }
}
Posted 8-Jul-12 20:25pm
Updated 8-Jul-12 23:17pm
v2
Comments
aspnet_regiis 9-Jul-12 7:00am
   
Please do not repost the same question

http://www.codeproject.com/Questions/415462/hand-writing-recognition-in-csharp-metro-style-app.aspx
Farhan Ghumra 9-Jul-12 8:01am
   
404 Not Found
aspnet_regiis 9-Jul-12 8:08am
   
Its not 404..Its 'Question not found' since you deleted it..404 is for 'Page not found'..Nice try...
Farhan Ghumra 9-Jul-12 8:24am
   
Any way I got solution from MSDN forum.

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Here is my solution

IReadOnlyList<string> text;
string finalt = "";
private async void Recognize_Click(object sender, RoutedEventArgs e)
{
    IReadOnlyList<inkrecognitionresult> x = await _inkManager.RecognizeAsync(InkRecognitionTarget.All);
    foreach (InkRecognitionResult i in x)
    {
        text = i.GetTextCandidates();
        finalt = finalt + " " + text[0];
        res.Text = finalt;   //res is x:Key of the textblock
    }


Solution by Subramanian : InkPen with Handwriting Recognition sample in CSharp[^]

Solution by Can: Windows 8 Input: Ink sample in C#/Xaml[^]

Kudos To Subramanian[^] and Can[^]
  Permalink  
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 5,984
CHill60 3,460
Maciej Los 3,053
Jochen Arndt 1,975
ppolymorphe 1,820


Advertise | Privacy | Mobile
Web01 | 2.8.170525.1 | Last Updated 10 Jul 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100