This interface represents a single character and is used to access its properties. More...
Public Member Functions | |
void | Draw (HDC hdc, LPVOCRDrawFlags drawFlags, double zoomX, double zoomY, double panX, double panY) |
void | GetCharImage (ILImage *img) |
Public Member Functions inherited from ILObject | |
ILObject * | Copy () |
LPVErrorCode | Load (LString filename) |
void | Reset () |
LPVErrorCode | Save (LString filename) |
BOOL | Valid () |
Properties | |
double | Angle [get] |
The angle of the character. | |
ILPoint | Center [get] |
The center of the character. | |
double | Confidence [get] |
The confidence of the recognition result. | |
double | Height [get] |
The height of the character. | |
ILPolygon | Quad [get] |
The region of the character as a quadrangle region. | |
double | Quality [get] |
The OCV quality score. | |
double | Space [get] |
The space between the character and its previous character in the same line. The first character has -1 space. | |
LString | String [get] |
The recognition result. | |
double | Width [get] |
The width of the character. | |
This interface represents a single character and is used to access its properties.
Usually you get the LOCRChar object from the ILOCRLine::Item() function. You can then use this interface to access to the character's placement, recognition result, quality, reduced image, etc., and draw the result on graphics windows.
void Draw | ( | HDC | hdc, |
LPVOCRDrawFlags | drawFlags, | ||
double | zoomX, | ||
double | zoomY, | ||
double | panX, | ||
double | panY | ||
) |
Draw the character object onto provide device context.
[in] | drawFlags | Control the drawing behavior, see LPVOCRDrawFlags |
void GetCharImage | ( | ILImage * | img | ) |
Get the reduced image of the character. For italic characters, the image is rectified.
[out] | img | Output the character's image |