L_OcrPage_GetZoneWords

Summary

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

Syntax

#include "ltocr.h"

L_LTOCR_API L_INT EXT_FUNCTION L_OcrPage_GetZoneWords(pageCharacters, zoneIndex, words)

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

See Also

Functions

Topics

Example

For an example, refer to L_OcrPage_GetRecognizedCharacters

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

LEADTOOLS OCR Module - LEAD Engine C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.