Chinese Simplified (简体中文)

CorrectGeometricalDistortions Method of the FRPage Object

This method straightens out distorted lines on an image. Distorted lines may occur close to the binding when scanning/photographing thick books.

We recommend calling this method after the page orientation has been corrected and a double-page spread has been split into two separate pages, if necessary. This method should be called before layout analysis (for example, the call to the IFRPage::Analyze method).

This method may report events to the listeners attached to the IConnectionPointContainer interface of FRPage.

Syntax

HRESULT CorrectGeometricalDistortions( IObjectsExtractionParams* ExtractionParams );
    

Parameters

ExtractionParams
[in] This variable refers to the ObjectsExtractionParams object corresponding to the parameters used for straightening out distorted lines on an image. This parameter may be 0, in which case the default parameters are used, or, if a profile has been loaded, the parameters set by this profile are used.

Return values

If straightening is interrupted by the user, this method will return E_ABORT. It also returns the standard return codes of ABBYY FineReader Engine functions.

See also

FRPage

IPagePreprocessingParams::CorrectGeometry

Working with Profiles

7/3/2024 8:50:10 AM

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.