Leaper Vision Toolkit
中文 / English 2.x
Public Member Functions | Properties
ILOCRChar Interface Reference

This interface represents a single character and is used to access its properties. More...

Inheritance diagram for ILOCRChar:
ILObject LOCRChar

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
ILObjectCopy ()
 
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.
 

Detailed Description

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.

Example Code

Member Function Documentation

◆ Draw()

void Draw ( HDC  hdc,
LPVOCRDrawFlags  drawFlags,
double  zoomX,
double  zoomY,
double  panX,
double  panY 
)

Draw the character object onto provide device context.

Parameters
[in]drawFlagsControl the drawing behavior, see LPVOCRDrawFlags
See also
Use Draw Functions
Remarks
This function is currently not available on Linux / MacOS platform.

◆ GetCharImage()

void GetCharImage ( ILImage img)

Get the reduced image of the character. For italic characters, the image is rectified.

Parameters
[out]imgOutput the character's image