L_OcrPage_InsertZone

#include "ltocr.h"

L_LTOCR_API L_INT EXT_FUNCTION L_OcrPage_InsertZone(page, index, ocrZone)

L_OcrPage page; handle to the OCR page
L_INT index; index you wish to insert the zone at
const L_OcrZone* ocrZone; Pointer to L_OcrZone structure to be inserted into the page zones list

Inserts L_OcrZone at the internal zones list of the page at specifiec index.

Parameter Description
page Handle to the OCR page.
index Index you wish to insert the zone at.
ocrZone Pointer to L_OcrZone structure to be inserted into the page zones list.

Returns

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

Comments

Inserts L_OcrZone at the internal zones list of the page at specifiec index.

If the zone index is outside the range of the internal zones list an error will return, so its a good practice to always check for zones count using L_OcrPage_GetZoneCount to determine the correct index where you wish to insert the new zone.

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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Advantage OCR C API Help