> ## 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.

# RecognizeBlocks Method of the FRPage Object

This method recognizes text and performs page synthesis in an explicitly specified set of blocks.

## Syntax

### C++

```cpp theme={null}
HRESULT RecognizeBlocks(
  IIntsCollection*          BlockIndices,
  ISynthesisParamsForPage*  SynthesisParamsForPage,
  IObjectsExtractionParams* ExtractionParams
);
```

### C\#

```csharp theme={null}
void RecognizeBlocks(
  IIntsCollection          BlockIndices,
  SynthesisParamsForPage  SynthesisParamsForPage,
  ObjectsExtractionParams ExtractionParams
);
```

### Visual Basic .NET

```vb theme={null}
Sub RecognizeBlocks( _
  BlockIndices As IIntsCollection, _
  [SynthesisParamsForPage As ISynthesisParamsForPage = Nothing], _
  [ExtractionParams As ObjectsExtractionParams = Nothing] _
)
```

## Parameters

BlockIndices

\[in] This parameter refers to the [IntsCollection](/fine-reader/engine/api-reference/supplementary-objects-and-methods/intscollection) object that contains the indices of blocks to be recognized. This parameter may be 0, in which case all blocks on the page are recognized.

SynthesisParamsForPage

\[in] The [SynthesisParamsForPage](/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/synthesisparamsforpage) object that stores parameters of page synthesis. This parameter may be 0. In this case, the page is synthesized 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] 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.

## Return values

If recognition 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

This method may report 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)
