|
TrainInk
- 0 2.0
Provides raw data and a correct interpretation of the data to the recognizer.
Note This function is provided only for compatibility with version 1.0 of the Pen
API and will not be supported in future versions. Use TrainHREC instead.
BOOL TrainInk( LPRC lprc, HPENDATA hpndt, LPSYV lpsyv )
Parameters
lprc
Address of an RC structure, or NULL. If this parameter is NULL, the RC Manager replaces it
with a pointer to the global RC structure, then calls the recognizer associated with the global RC. If lprc is not NULL, the RC Manager calls the recognizer identified by the hrec member of the RC structure.
hpndt
Handle to an HPENDATA object containing the ink to be trained. This parameter cannot be NULL.
lpsyv
Pointer to a string of SYV symbol values terminated by SYV_NULL. This parameter cannot be NULL.
Return Value
Returns TRUE if the ink described by the pen data could be trained; otherwise,
it returns FALSE.
Comments
Applications call TrainInk with raw data accompanied by a correct interpretation of the data, so that
the recognizer can improve subsequent recognition. A second, more complex
training function for version 1.0 recognizers is provided by TrainContext.
TrainInk is called by an application to access the TrainInkInternal function in the recognizer library. A private 1.0 recognizer must export both TrainInkInternal and TrainContextInternal, but the functions can simply return FALSE if the recognizer does not support
this type of training.
TrainInk provides the lowest level of basic shape training. It requests the recognizer
to assign the meaning in lpsyv to the ink in hpndt. The recognizer should interpret the ink to meet that request.
In the most common case, lpsyv points to a single character, and the recognizer will train a new shape based
on the ink and that character. In other cases, multiple SYV symbol values can be passed, indicating that the ink represents multiple
characters. The recognizer must decide whether to simply add a new shape with a
meaning based on multiple SYV symbol values or to segment the ink into separate shapes for each SYV.
An application should check whether a recognizer supports training by calling ConfigRecognizer with the WCR_TRAIN subfunction.
The trainer does not display an error message if TrainInk or TrainContext returns FALSE. Error messages that occur when training fails must be handled
by the recognizer.
See Also
ConfigRecognizer, TrainContext, TrainHREC, SYV_
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|