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

# FRPage オブジェクトの RecognizeBlocks メソッド

> ABBYY FineReader Engine API の FRPage オブジェクトの RecognizeBlocks メソッド — 明示的に指定したブロックのセット内で、テキスト認識とページ合成を実行します。

このメソッドは、明示的に指定したブロックのセットに対して、テキスト認識とページ合成を実行します。

<div id="syntax">
  ## 構文
</div>

<div id="c">
  ### C++
</div>

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

### C\#

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

<div id="visual-basic-net">
  ### Visual Basic .NET
</div>

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

<div id="parameters">
  ## パラメーター
</div>

BlockIndices

\[in] 認識するブロックのインデックスを格納する [IntsCollection](/ja/fine-reader/engine/api-reference/supplementary-objects-and-methods/intscollection) オブジェクトを指定するパラメーターです。このパラメーターには 0 を指定することもでき、その場合はページ上のすべてのブロックが認識されます。

SynthesisParamsForPage

\[in] ページ合成のパラメーターを格納する [SynthesisParamsForPage](/ja/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/synthesisparamsforpage) オブジェクトです。このパラメーターには 0 を指定することもできます。この場合、ページは既定のパラメーターで合成されます。なお、[プロファイル](/ja/fine-reader/engine/guided-tour/advanced-techniques/working-with-profiles) が読み込まれている場合は、そのプロファイルで設定されたパラメーターが使用されます。

ExtractionParams

\[in] オブジェクト抽出のパラメーターを格納する [ObjectsExtractionParams](/ja/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/objectsextractionparams) オブジェクトです。このパラメーターには 0 を指定することもできます。この場合、オブジェクトは既定のパラメーターで抽出されます。なお、[プロファイル](/ja/fine-reader/engine/guided-tour/advanced-techniques/working-with-profiles) が読み込まれている場合は、そのプロファイルで設定されたパラメーターが使用されます。

<div id="return-values">
  ## 戻り値
</div>

認識がユーザーによって中断された場合、このメソッドは E\_ABORT を返します。また、[ABBYY FineReader Engine 関数の標準の戻りコード](/ja/fine-reader/engine/api-reference/return-codes)も返します。

<div id="remarks">
  ## 注記
</div>

このメソッドは、[FRPage](/ja/fine-reader/engine/api-reference/document-related-objects/frpage)オブジェクトの IConnectionPointContainer インターフェイスにアタッチされているリスナーに、イベントを通知することがあります。

<div id="see-also">
  ## 関連項目
</div>

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

[プロファイルの操作](/ja/fine-reader/engine/guided-tour/advanced-techniques/working-with-profiles)

[前処理、解析、Recognition、およびSynthesisのParametersの調整](/ja/fine-reader/engine/guided-tour/advanced-techniques/tuning-parameters-of-preprocessing-analysis-recognition-and-synthesis)
