Click here to Skip to main content
Sign Up to vote bad
good
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:25
Edited 8 Jul '12 - 23:17

Comments
aspnet_regiis - 9 Jul '12 - 7:00
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:01
404 Not Found
aspnet_regiis - 9 Jul '12 - 8:08
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:24
Any way I got solution from MSDN forum.

1 solution

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  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 415
1 Arun Vasu 399
2 Sergey Alexandrovich Kryukov 368
3 Tadit Dash 198
4 Maciej Los 191
0 Sergey Alexandrovich Kryukov 9,955
1 OriginalGriff 7,589
2 CPallini 4,028
3 Rohan Leuva 3,422
4 Maciej Los 2,949


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