L_OcrPageCharacters (original) (raw)

Summary

Represents list of the recognized characters of a page.

Syntax

struct L_OcrPageCharacters { [L_UINT](../../main/api/leadtools-basic-data-types.html) StructSize; [L_OcrZoneCharacters](l-ocrzonecharacters.html)* ZoneCharacters; [L_UINT](../../main/api/leadtools-basic-data-types.html) ZoneCharacterCount; }; typedef struct L_OcrPageCharacters L_OcrPageCharacters;

Members

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.

Usage