Preprocess Method of the FRPage Object
This method preprocesses the page: corrects page orientation, inversion, geometrical distortions. Page preprocessing is performed before page analysis.
Syntax
HRESULT Preprocess( IPagePreprocessingParams* PreprocessingParams, IObjectsExtractionParams* ExtractionParams, IRecognizerParams* RecognizerParams );
Parameters
- PreprocessingParams
- [in] Refers to the PagePreprocessingParams object that stores parameters of page preprocessing. This parameter may be 0. In this case, the page is preprocessed with default parameters, or, if a profile has been loaded, the parameters set by this profile are used.
- ExtractionParams
- [in] Refers to the ObjectsExtractionParams object that stores parameters of objects extraction. This parameter may be 0. In this case, the objects are extracted with default parameters, or, if a profile has been loaded, the parameters set by this profile are used.
- RecognizerParams
- [in] Refers to the RecognizerParams object that stores recognition parameters necessary for page preprocessing (e.g., recognition language). This parameter may be 0. In this case, the default parameters are used, or, if a profile has been loaded, the parameters set by this profile are used.
Return values
If page preprocessing is interrupted by the user, this method will return E_ABORT. It also returns the standard return codes of ABBYY FineReader Engine functions.
Remarks
This method may report events to the listeners attached to the IConnectionPointContainer interface of the FRPage object.
See also
Tuning Parameters of Preprocessing, Analysis, Recognition, and Synthesis
03.07.2024 8:50:10