L_Doc2SetRecognizeModuleTradeOffExt

#include "ltdoc2.h"

L_LTDOC2_API L_INT L_Doc2SetRecognizeModuleTradeOffExt(hDoc, nDocId, TradeOff)

Specifies how the OCR document engine will handle the trade-off between accuracy and speed during auto-zoning and recognition.

Parameters

L_HDOC2 hDoc

Handle to the OCR document.

L_INT nDocId

Document ID created by calling L_Doc2CreateDocument.

DOC2_RECOGMODULE_TRADEOFF TradeOff

Value that represents the trade-off setting to be used. For a list of possible values, refer to DOC2_RECOGMODULE_TRADEOFF.

Returns

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

Comments

Specifies the trade-off setting (accuracy, balance, or speed) of the OCR document engine that will be used during auto-zoning and recognition.

To apply auto-zone detection in a specific page, call the L_Doc2FindZones / L_Doc2FindZonesExt function. To recognize a page, call the L_Doc2Recognize / L_Doc2RecognizeExt function.

The OCR document engine trade-off setting is effective for the following recognition modules:

The trade-off setting does not influence the behavior of any other DOC2_RECOGMODULE recognition module. Not all the above modules interpret the settings in the same way.

If L_Doc2SetRecognizeModuleTradeOffExt is not called, the default value, DOC2_RECGMD_ACCURATE, is applied.

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