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.



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


void DetectResolution(
  IObjectsExtractionParams ExtractionParams,
  int                     MinResolution,
  int                     MaxResolution,
  out int                 NewResolution

Visual Basic .NET

Sub DetectResolution( _
  ExtractionParams As IObjectsExtractionParams, _
  MinResolution As Integer, _
  MaxResolution As Integer, _
  ByRef NewResolution As Integer


[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.
[in] Specifies the minimum resolution which can be selected.
[in] Specifies the maximum resolution which can be selected.
[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





Working with Profiles

24.03.2023 8:51:52

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.