L_OcrWord

struct L_OcrWord 
{ 
   L_UINT StructSize; 
   L_WCHAR* Value; 
   L_WCHAR Buffer[128]; 
   L_RECT Bounds; 
   L_UINT FirstCharacterIndex; 
   L_UINT LastCharacterIndex; 
}; 
typedef struct L_OcrWord L_OcrWord; 

Represents recognized word data.

Member Description
StructSize Structure size. It should be equal to sizeof(L_OcrWord).
Value Gets or sets the word value.
Buffer Pointer to L_OcrWord.Buffer, for internal use.
Bounds Gets or sets the word coordinates in bitmap coordinates.
FirstCharacterIndex Gets or sets the first index of word value in the L_OcrZoneCharacters.Characters.
LastCharacterIndex Gets or sets the last index of word value in the L_OcrZoneCharacters.Characters.

Comments

You can get the recognized words of a zone with the L_OcrPage_GetZoneWords method. This is a helper method that iterate through the L_OcrCharacter array of the zone and constructs the words based on the L_OcrCharacter.Positions flags.

You can modify the OCR recognition results by updating page recognized characters you retrieved via a call to L_OcrPage_GetRecognizedCharacters and after you finish updating page characters you can call L_OcrPage_SetRecognizedCharacters before optionally saving the results to the final output document.

This structure is used inside L_OcrWords structure which in turn is used with the following functions:

L_OcrPage_GetZoneWords

L_OcrPage_FreeWords

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Advantage OCR C API Help