L_OcrPageCharacters

struct L_OcrPageCharacters 
{ 
   L_UINT StructSize; 
   L_OcrZoneCharacters* ZoneCharacters; 
   L_UINT ZoneCharacterCount; 
}; 
typedef struct L_OcrPageCharacters L_OcrPageCharacters; 

Represents list of the recognized characters of a page.

Member Description
StructSize Structure size. It should be equal to sizeof(L_OcrPageCharacters).
ZoneCharacters This is an array of L_OcrZoneCharacters structure, each element in this array contains list of recognized characters of particular zone inside the OCR page.
ZoneCharacterCount This member represents the number of items in L_OcrPageCharacters.ZoneCharacters, this member should reflect the then number of zones in the page that contains characters after recognition, so if you have for example a page with 3 zones and after recognition one of these zones didn't contain text for some reason or maybe because it was a "Graphic" zone then this member will have the value 2 (which is the number of textual zones).

Comments

To get the recognized characters of a page, call L_OcrPage_GetRecognizedCharacters after L_OcrPage_Recognize.

To update the recognized characters of a page, call L_OcrPage_SetRecognizedCharacters before calling L_OcrDocument_Save or L_OcrDocument_SaveXml.

L_OcrPageCharacters contains a list of the characters of the zones.

L_OcrZoneCharacters contains a list of the characters for a particular zone.

This structure is used by the following functions:

L_OcrPage_GetRecognizedCharacters

L_OcrPage_SetRecognizedCharacters

L_OcrPage_FreePageCharacters

L_OcrPage_GetZoneWords

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

LEADTOOLS OCR Module - LEAD Engine C API Help