L_Doc2SetRecognitionResultOptionsExt

#include "ltdoc2.h"

L_LTDOC2_API L_INT L_Doc2SetRecognitionResultOptionsExt(hDoc, nDocId, pResOpts)

Sets the recognition result options.

Parameters

L_HDOC2 hDoc

Handle to the OCR document.

L_INT nDocId

Document ID created by calling L_Doc2CreateDocument.

pRESULTOPTIONS2 pResOpts

Pointer to a RESULTOPTIONS2 structure containing the options to set.

Returns

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

Comments

Sets options that will be used to save recognition results to a file.

These options will be used with the L_Doc2SaveResultsToFile / L_Doc2SaveResultsToFileExt function.

To recognize one or more pages, call the L_Doc2Recognize / L_Doc2RecognizeExt function.

To get settings for a specific format, call L_Doc2GetOutputFormatSettings / L_Doc2GetOutputFormatSettingsExt, and to update format settings, call L_Doc2SetOutputFormatSettings / L_Doc2SetOutputFormatSettingsExt.

✎ NOTE

Call L_Doc2SetRecognitionResultOptionsExt before calling any of the following functions in order to specify the document format type for which to get/set its options:

Required DLLs and Libraries

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

LEADTOOLS OCR Module - OmniPage Engine C API Help