1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Single Character Recognition not working well

Discussion in 'Tablets | Developers' started by vasuneet, Jun 17, 2010.

  1. vasuneet

    vasuneet Flightless Bird

    Hi all,
    I am facing problem in Single Character Recognition.

    Some times it reads 'H' as 'V' and 'B' as 'A' while the strokes are pretty resembles with 'H' and 'B'.

    The code snippets are as follows:

    Ink mInk = new Ink();
    analyzer = new InkAnalyzer(mInk, null);

    //the following function inserts the strokes in 'mInk' which need to be recognized
    List<Point[]> fetched = FetchStorkesInformation(mInk, userArea, hwrStrokes);

    if (mInk.Strokes.Count > 0)
    string ss = string.Empty;

    analysisNode = analyzer.CreateAnalysisHint();
    analysisNode.Factoid ="(A|8-|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z)";

    analyzer.SetStrokesType(mInk.Strokes, StrokeType.Writing);
    analyzer.SetStrokesLanguageId(mInk.Strokes, 1033);//us english

    AnalysisStatus analysisStatus = analyzer.Analyze();

    ss = analyzer.GetRecognizedString();


    Now to solve this issue i have changed the code and used

    RecognizerGuide and give the location to the AnalysisHint Node in the following way:

    analysisNode = analyzer.CreateAnalysisHint(location);

    analysisNode.Guide = new RecognizerGuide(1, 1, (int)(rect.Height) / 2,
    new Rectangle(0, 0, rect.Width, rect.Height),
    new Rectangle(0, 0, rect.Width, rect.Height));

    But due to this factoid property is not working as expected.
    'I' is recognized as 1.

    Thanks & Regards
    Vasuneet Arya

Share This Page