L_OcrPage_GetZoneWords

#include "ltocr.h"

L_LTOCR_API L_INT EXT_FUNCTION L_OcrPage_GetZoneWords(pageCharacters, zoneIndex, words)

const L_OcrPageCharacters* pageCharacters; pointer to page character
L_UINT zoneIndex; zone index
L_OcrWords* words; address for L_OcrWords structure to be updated with zone words

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

Parameter Description
pageCharacters Pointer to page character you retrieved after calling L_OcrPage_GetRecognizedCharacters method.
zoneIndex Zone index.
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

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

LTOCR
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Help Version 20.0.2018.6.21
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS OCR Module - LEAD Engine C API Help