#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. |
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
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. |
For an example, refer to L_OcrPage_GetRecognizedCharacters.