RecAPI
Classes | Typedefs | Enumerations | Functions
HNR Recognition Engine Module
Recognition Engines having own functions

Handprinted numeral recognition module. This module is supported on: Windows. More...

Classes

struct   HNR_BOXDATA
  Character box of HNR. More...

Typedefs

typedef HNR_BOXDATA LPHNR_BOXDATA
  Pointer type to a HNR_BOXDATA type variable.
typedef const HNR_BOXDATA LPCHNR_BOXDATA
  Const pointer type to a HNR_BOXDATA type variable.

Enumerations

enum   HNR_STYLE {
  STYLE_EURO,
  STYLE_US
}
  Writing style of HNR. More...

Functions

RECERR RECAPIKRN  kRecSetHnrStyle (int sid, HNR_STYLE db)
  Setting writing style of HNR.
RECERR RECAPIKRN  kRecGetHnrStyle (int sid, HNR_STYLE *pdb)
  Getting writing style of HNR.
RECERR RECAPIKRN  kRecSetHnrParams (int sid, LPCHNR_BOXDATA pCharbox, INTBOOL bSpaceincl)
  Setting HNR parameters.
RECERR RECAPIKRN  kRecGetHnrParams (int sid, LPHNR_BOXDATA pCharbox, INTBOOL *pbSpaceincl)
  Getting HNR parameters.

Detailed Description

Handprinted numeral recognition module. This module is supported on: Windows.

See the general description and the settings of this module.


Enumeration Type Documentation

enum HNR_STYLE

Writing style of HNR.

This setting specifies the writing style of the characters for the HNR handprinted numerals recognition module.

Note:
The HNR module is supported on: Windows.
European style for example expects sevens (7) to be crossed whereas they are not crossed in the North American style.
Enumerator:
STYLE_EURO 

Writing in European style. This is the default style.

STYLE_US 

Writing in North American style.


Function Documentation

RECERR RECAPIKRN kRecGetHnrParams ( int  sid,
LPHNR_BOXDATA  pCharbox,
INTBOOL *  pbSpaceincl 
)

Getting HNR parameters.

The kRecGetHnrParams function inquires the current space inclusion flag and Character box parameter setting of the handprinted numeral recognition module RM_HNR.

Parameters:
[in] sid Settings Collection ID.
[out] pCharbox Pointer of a structure to receive Character box parameters.
[out] pbSpaceincl Pointer of a variable to store the space inclusion flag. When the space inclusion flag is TRUE, the recognition module calculates and may return SPACE characters between the recognized numeral characters.
Return values:
RECERR
Note:
The HNR module is supported on: Windows.
This function gets the value of the settings Kernel.Ocr.HNR.box_height, ...box_space, ...box_width and ...Spaces. These settings can be changed by kRecSetHnrParams.
The specification of this function in C# is:
 RECERR kRecGetHnrParams(int sid, out HNR_BOXDATA pCharbox, out bool bSpaceincl); 
The specification of this function in Java is:
 int kRecGetHnrParams(int sid, HNR_BOXDATA pCharbox, int[] pbSpaceincl) 
RECERR RECAPIKRN kRecGetHnrStyle ( int  sid,
HNR_STYLE pdb 
)

Getting writing style of HNR.

The kRecGetHnrStyle function inquires the writing style setting of the handprinted numeral recognition module (FM_HANDPRINT).

Parameters:
[in] sid Settings Collection ID.
[out] pdb Pointer of a variable to store the writing style setting.
Return values:
RECERR
Note:
The HNR module is supported on: Windows.
This function gets the value of the setting Kernel.Ocr.HNR.Database. This setting can be changed by kRecSetHnrStyle.
The specification of this function in C# is:
 RECERR kRecGetHnrStyle(int sid, out HNR_STYLE pdb); 
The specification of this function in Java is:
 int kRecGetHnrStyle(int sid, HNR_STYLE[] pdb) 
RECERR RECAPIKRN kRecSetHnrParams ( int  sid,
LPCHNR_BOXDATA  pCharbox,
INTBOOL  bSpaceincl 
)

Setting HNR parameters.

The kRecSetHnrParams function sets character box parameters and the space inclusion flag for the handprinted numerals recognition module FM_HANDPRINT.

Parameters:
[in] sid Settings Collection ID.
[in] pCharbox Pointer of a Character box parameter structure. It can be NULL.
[in] bSpaceincl Space inclusion flag. This flag controls whether or not the handprinted numeral recognition module should export spaces detected between characters.
Return values:
RECERR
Note:
The HNR module is supported on: Windows.
This function can be used when the application is aware of the size of the handprinted numerals to be recognized in advance (i.e. before processing). The use of this function may yield better accuracy.
This function sets the value of the settings Kernel.Ocr.HNR.box_height, ...box_space, ...box_width and ...Spaces. These settings can be retrieved by kRecGetHnrParams.
The specification of this function in C# is:
 RECERR kRecSetHnrParams(int sid, HNR_BOXDATA pCharbox, bool bSpaceincl); 
The specification of this function in Java is:
 int kRecSetHnrParams(int sid, HNR_BOXDATA pCharbox, int bSpaceincl) 
RECERR RECAPIKRN kRecSetHnrStyle ( int  sid,
HNR_STYLE  db 
)

Setting writing style of HNR.

The kRecSetHnrStyle function sets the writing style setting for the handprinted numerals recognition module (FM_HANDPRINT).

Parameters:
[in] sid Settings Collection ID.
[in] db Writing style to be set.
Return values:
RECERR
Note:
The HNR module is supported on: Windows.
If this function is not called, the default value of STYLE_EURO is applied.
This function sets the value of the setting Kernel.Ocr.HNR.Database. This setting can be retrieved by kRecGetHnrStyle.
The specification of this function in C# is:
 RECERR kRecSetHnrStyle(int sid, HNR_STYLE db); 
The specification of this function in Java is:
 int kRecSetHnrStyle(int sid, HNR_STYLE db)