Gets a list of recognized the words for passed zone index.
#include "ltocr.h"
L_LTOCR_API L_INT EXT_FUNCTION L_OcrPage_GetZoneWords(pageCharacters, zoneIndex, words)
Pointer to page character you retrieved after calling L_OcrPage_GetRecognizedCharacters method.
Zone index.
Address for L_OcrWords structure to be updated with zone words. You must call L_OcrPage_FreeWords method to free this words list memory.
Value | Meaning |
---|---|
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.
For an example, refer to L_OcrPage_GetRecognizedCharacters