L_OcrWords

struct L_OcrWords 
{ 
   L_UINT StructSize; 
   L_OcrWord* Words; 
   L_UINT WordCount; 
}; 
typedef struct L_OcrWords L_OcrWords; 

Gets a list of recognized words for particular zone.

Member Description
StructSize Structure size. It should be equal to sizeof(L_OcrWords).
Words Array of particular zone words.
WordCount Number of words in L_OcrWords.Words.

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 with the following functions:

L_OcrPage_GetZoneWords

L_OcrPage_FreeWords

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS OCR Module - LEAD Engine C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.