跳轉到主要內容
這個方法會在明確指定的一組區塊內辨識文字,並執行頁面合成。

語法

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。在此情況下,頁面會使用預設參數進行合成;如果已載入 設定檔,則會改用該設定檔中設定的參數。 ExtractionParams [in] ObjectsExtractionParams 物件,用於儲存物件擷取的參數。此參數可為 0。在此情況下,系統會使用預設參數擷取物件;如果已載入 設定檔,則會改用該設定檔中設定的參數。

回傳值

如果識別因使用者中斷,則此方法會回傳 E_ABORT。它也會回傳 ABBYY FineReader Engine 函式的標準回傳碼

備註

此方法可能會將事件回報給附加在 FRPage 物件之 IConnectionPointContainer 介面上的接聽器。

另請參閱

FRPage 設定檔的使用方式 調整預處理、分析、識別和合成參數