DetectResolution Method of the FRPage Object

This method selects the best resolution from the specified range. It is intended to estimate the best resolution for recognition. The result of this method’s work can be unreliable if the image contains little or no text.

The method does not change resolution of the page image. To change resolution to the selected one, use the IImageDocument::ChangeResolution method.

Syntax

HRESULT DetectResolution(
  IObjectsExtractionParams* ExtractionParams,
  int                       MinResolution,
  int                       MaxResolution,
  int*                      NewResolution
);
    

Parameters

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.
MinResolution
[in] Specifies the minimum resolution which can be selected.
MaxResolution
[in] Specifies the maximum resolution which can be selected.
NewResolution
[out] Receives the best resolution of the page image. If ABBYY FineReader Engine cannot select resolution from the specified range (MinResolution to MaxResolution), -1 is returned.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.

See also

FRPage

IPrepareImageMode::OverwriteResolution

IPrepareImageMode::AutoOverwriteResolution

IImageDocument::ChangeResolution

Working with Profiles

03.07.2024 8:50:25

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.