InkDivider doesn't work properly for my application?
Hello,
My Ink datas are originally stored in a relational database. Via so-called
R3-Framework(have to) as client I transform the ink data into a XML file
which looks like:
<Ink>
<Stroke><p x=.., y=.., f=..,t=.. /></Stroke>
<Stroke>...</Stroke>
....
</Ink>
Then R3 connects the Handwriting Recoginition Server and transfers the data
to it as String Type for analyzing. That works well with returned recognized
text and alternatives. But a problem occurs when I try to use InkDivider to
distinguish texts from graphics. It seems It cannot correctly do this
separation. For example, My first ink data has 18 strokes which should be
recognized to "TEST TEST", but after running with following code included,
it tells there are 18 division units.
//rc is the RecognizerContext
Divider divider = new Divider(rc.Strokes, rc);
DivisionResult divResult = divider.Divide();
DivisionUnits units =
divResult.ResultByType(InkDivisionType.Drawing);
Console.WriteLine(divUnits.Count);
I don't know how to deal with this. Could the String type of ink data be a
possible reason? If the Divider can't separate text from graphics in this
case, is there any other solution? Any help will be very appreciated!
Joe
date: Tue, 28 Aug 2007 06:44:01 -0700
author: Joe