background image
C H A P T E R 1 0
Recognition: Advanced Topics
Summary of Advanced Topics in Recognition
10-49
System-Supplied ProtoCharEdit Templates
10
GetLocale().phoneFilter // phone number template
GetLocale().dateFilter // date template
GetLocale().timeFilter // time template
ROM_numberFilter // general-purpose integer template
Stroke Bundle Frame
10
aStrokeBundle :=
{
//bounding rectangle of ink strokes
bounds: {
top
,
left
,
right
,
bottom
},
// strokes in the bundle
strokes: [
binaryObj1
,
binaryObj2
, ...
binaryObjN
]
}
Recognition System Prototypes
10
protoRecConfig
10
aRecConfigFrame := {
// enabled recognizers and dicts
inputMask:
bitField
,
// true enables text recog if doTextRecognition
// is also true
allowTextRecognition:
Boolean
,
// true enables shape recog if doShapeRecognition
// is also true
allowShapeRecognition:
Boolean
,
// true enables text recognition unconditionally
doTextRecognition:
Boolean
,
// true enables shape recognition unconditionally
doShapeRecognition:
Boolean
,
// true enables ink text unconditionally
doInkWordRecognition:
Boolean
,
// amount of time to spend recognizing input
speedCursiveOption:
int
,
// relative amount of time between distinct strokes
timeoutCursiveOption:
int
,
// true enables letter-by-letter option
letterSpaceCursiveOption:
Boolean
,
© 2007-2024, o7 studio » при воспроизведении материала сайта ссылка обязательна