跳转到主要内容
此方法在明确指定的块集中识别文本并执行页面合成。

语法

C++

HRESULT RecognizeBlocks(
  IIntsCollection*          BlockIndices,
  ISynthesisParamsForPage*  SynthesisParamsForPage,
  IObjectsExtractionParams* ExtractionParams
);

C#

void RecognizeBlocks(
  IIntsCollection          BlockIndices,
  SynthesisParamsForPage  SynthesisParamsForPage,
  ObjectsExtractionParams ExtractionParams
);

Visual Basic .NET

Sub RecognizeBlocks( _
  BlockIndices As IIntsCollection, _
  [SynthesisParamsForPage As ISynthesisParamsForPage = Nothing], _
  [ExtractionParams As ObjectsExtractionParams = Nothing] _
)

参数

BlockIndices [in] 此参数是一个 IntsCollection 对象,其中包含要识别的块索引。如果此参数为 0,则将识别页面上的所有块。 SynthesisParamsForPage [in] 此参数是一个 SynthesisParamsForPage 对象,用于存储页面合成的参数。如果此参数为 0,则使用默认参数进行页面合成;或者,如果已加载了 profile,则使用其设置的参数。 ExtractionParams [in] 此参数是一个 ObjectsExtractionParams 对象,用于存储对象提取的参数。如果此参数为 0,则使用默认参数提取对象;或者,如果已加载了 profile,则使用其设置的参数。

返回值

如果用户中断识别,此方法将返回 E_ABORT。它还会返回 ABBYY FineReader Engine 函数的标准返回代码

备注

此方法可能会将事件报告给附加到 FRPage 对象的 IConnectionPointContainer 接口的监听器。

另请参阅

FRPage 使用配置文件 调整预处理、分析、识别和合成的参数