> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AnalyzeRegion Method of the FRPage Object

This method analyzes the layout of the image inside the specified region.

## Syntax

### C++

```cpp theme={null}
HRESULT AnalyzeRegion(
  IRegion*                  Region,
  IPageAnalysisParams*      AnalysisParams,
  IObjectsExtractionParams* ExtractionParams,
  IRecognizerParams*        RecognizerParams
);
```

### C\#

```csharp theme={null}
void AnalyzeRegion(
  IRegion                  Region,
  IPageAnalysisParams      AnalysisParams,
  IObjectsExtractionParams ExtractionParams,
  IRecognizerParams        RecognizerParams
);
```

### Visual Basic .NET

```vb theme={null}
Sub AnalyzeRegion( _
  Region As IRegion, _
  [AnalysisParams As IPageAnalysisParams = Nothing], _
  [ExtractionParams As IObjectsExtractionParams = Nothing], _
  [RecognizerParams As IRecognizerParams = Nothing] _
)
```

## Parameters

Region

\[in] Refers to the [Region](/fine-reader/engine/api-reference/supplementary-objects-and-methods/region) object that specifies the area on image that is to be analyzed. It should be set in coordinates of the deskewed black-and-white plane of the [ImageDocument](/fine-reader/engine/api-reference/image-related-objects/imagedocument).

AnalysisParams

\[in] Refers to the [PageAnalysisParams](/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/pageanalysisparams) object that stores parameters of layout analysis of the region. This parameter may be 0. In this case, the region is analyzed with default parameters, or, if a [profile](/fine-reader/engine/guided-tour/advanced-techniques/working-with-profiles) has been loaded, the parameters set by this profile are used.

ExtractionParams

\[in] Refers to the [ObjectsExtractionParams](/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/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](/fine-reader/engine/guided-tour/advanced-techniques/working-with-profiles) has been loaded, the parameters set by this profile are used.

RecognizerParams

\[in] Refers to the [RecognizerParams](/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/recognizerparams) object that stores recognition parameters necessary for layout analysis (e.g., recognition language). This parameter may be 0. In this case, the default parameters are used, or, if a [profile](/fine-reader/engine/guided-tour/advanced-techniques/working-with-profiles) has been loaded, the parameters set by this profile are used.

## Return values

If layout analysis is interrupted by the user, this method will return E\_ABORT. It also returns the [standard return codes of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## Remarks

* During the process of analysis of layout in region all the blocks that lay entirely inside the region are deleted from the [IFRPage::Layout](/fine-reader/engine/api-reference/document-related-objects/frpage#layout) subobject. Zero or more new blocks may be added to the Layout as the result of this method call.
* It does not report any events to the listeners attached to the IConnectionPointContainer interface of the [FRPage](/fine-reader/engine/api-reference/document-related-objects/frpage) object.

## See also

[FRPage](/fine-reader/engine/api-reference/document-related-objects/frpage)

[Working with Profiles](/fine-reader/engine/guided-tour/advanced-techniques/working-with-profiles)

[Tuning Parameters of Preprocessing, Analysis, Recognition, and Synthesis](/fine-reader/engine/guided-tour/advanced-techniques/tuning-parameters-of-preprocessing-analysis-recognition-and-synthesis)
