L_OcrPage_GetZoneWords

#include "ltocr.h"

L_LTOCR_API L_INT EXT_FUNCTION L_OcrPage_GetZoneWords(pageCharacters, zoneIndex, words)

Gets a list of recognized the words for passed zone index.

Parameters

const L_OcrPageCharacters* pageCharacters

Pointer to page character you retrieved after calling L_OcrPage_GetRecognizedCharacters method.

L_UINT zoneIndex

Zone index.

L_OcrWords* words

Address for L_OcrWords structure to be updated with zone words. You must call L_OcrPage_FreeWords method to free this words list memory.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

Gets a list of recognized the words for passed zone index.

This is a helper method that iterate through the all characters of 'pageCharacters' list of the zone and constructs the words based on the L_OcrCharacter.Positions flags.

The returned words contain bound values in pixels.

Note: You must call L_OcrPage_FreeWords method to free this words list memory.

Required DLLs and Libraries

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.