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 OriginalGriff 195
1 ProgramFOX 130
2 Maciej Los 105
3 Afzaal Ahmad Zeeshan 82
4 Sergey Alexandrovich Kryukov 75
0 OriginalGriff 6,564
1 Sergey Alexandrovich Kryukov 6,048
2 DamithSL 5,228
3 Manas Bhardwaj 4,717
4 Maciej Los 4,150


Advertise | Privacy | Mobile
Web04 | 2.8.1411022.1 | Last Updated 10 Jul 2012
Copyright © CodeProject, 1999-2014
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