#include "ltdoc2.h"
L_LTDOC2_API L_INT L_Doc2SetRecognitionResultOptionsExt(hDoc, nDocId, pResOpts)
Sets the recognition result options.
Handle to the OCR document.
Document ID created by calling L_Doc2CreateDocument.
Pointer to a RESULTOPTIONS2 structure containing the options to set.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
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
For an example, refer to L_Doc2SaveResultsToFileExt.