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 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