Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Windows XAML drawing Metro WinRT , +
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 21:25pm
Edited 9-Jul-12 0:17am
v2
Comments
aspnet_regiis at 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 at 9-Jul-12 8:01am
   
404 Not Found
aspnet_regiis at 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 at 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
0 Suvendu Shekhar Giri 265
1 Sergey Alexandrovich Kryukov 235
2 Andy Lanng 185
3 PIEBALDconsult 180
4 Black_Rose 130
0 Sergey Alexandrovich Kryukov 6,360
1 OriginalGriff 5,878
2 Peter Leow 2,514
3 Maciej Los 2,263
4 Abhinav S 2,249


Advertise | Privacy | Mobile
Web02 | 2.8.150414.1 | Last Updated 10 Jul 2012
Copyright © CodeProject, 1999-2015
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