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

# FlexiCapture Engine から FlexiCapture SDK への移行

この記事では、ABBYY FlexiCapture Engine 向けに作成したコードを ABBYY FlexiCapture SDK へ移行する方法について説明します。アップグレードを開始する前に、使用していたコードとプロジェクトをバックアップしてください。

ABBYY FlexiCapture SDK は ABBYY FlexiCapture Engine とバイナリ互換性がないため、アプリケーションを再コンパイルする必要があります。また、多くの場合、コードの一部修正も必要になります。

## 製品の初期化

ABBYY FlexiCapture Engine でライブラリをロードする際に [**IEngineLoader**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/iengineloader.md) インターフェイスを使用していた場合、変更は必要ありません。

ただし、廃止された **Initialize**/**InitializeEx** 関数を使用していた場合は、[**GetEngineLoader**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/getengineloader.md) 関数に切り替える必要があります。ABBYY FlexiCapture SDK では、廃止された初期化メソッドはサポートされていません。

詳細については、「[エンジンのさまざまな読み込み方法](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/differentwaystoloadengine.md)」セクションを参照してください。

## FlexiCapture プロジェクト を使用していた場合

ABBYY FlexiCapture 12 SDK では、ABBYY FlexiCapture 12 SDK または ABBYY FlexiCapture で作成された FlexiCapture プロジェクトを使用できます。

ABBYY FlexiCapture 12 SDK または ABBYY FlexiCapture の新しいバージョンで作成されたプロジェクトは、現在の ABBYY FlexiCapture 12 SDK リリースでは使用できません。これらの製品の以前のバージョンで作成されたプロジェクトの場合は、[**Engine**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine.md) オブジェクトの [**UpdateProject**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine-updateproject.md) メソッドを呼び出してプロジェクトを更新してください。更新後は、FlexiCapture Engine と同じ方法で FlexiCapture SDK を使用できます。

## FlexiCapture Processor を使用していた場合

FlexiCapture Engine では、FlexiCapture Processor を使用して、どのプロジェクトやバッチにも属さないドキュメントを処理できました。FlexiCapture SDK では、ドキュメント定義のセットを含む FlexiCapture プロジェクトを介してのみ処理を行えます。FlexiCapture Engine から FlexiCapture SDK へコードを移行するには、以下の手順に従ってください。

1. 新しい FlexiCapture プロジェクトを作成します。作成には FlexiCapture 開発者パッケージを使用するか、[**Engine**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine.md) オブジェクトの [**CreateProject**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine-createproject.md) メソッドを使用できます。
2. [**Engine**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine.md) オブジェクトの [**OpenProject**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine-openproject.md) メソッドを使用して、FlexiCapture SDK でプロジェクトを開きます。
3. [**DocumentDefinitions**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/documentdefinitions.md) オブジェクトの [**LoadFromFile**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/documentdefinitions-loadfromfile.md) メソッドを呼び出して、これまで使用していたドキュメント定義をプロジェクトにロードします。
4. [**Batches**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batches.md) オブジェクトの [**AddNew**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batches-addnew.md) メソッドを呼び出して、プロジェクトに新しいバッチを追加します。
5. [**Batch**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch.md) オブジェクトの [**AddImage**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch-addimage.md) メソッドを使用して、処理対象の画像を追加します。
6. [**Project**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/project.md) オブジェクトの [**Recognize**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/project-recognize.md) メソッド、または [**Batch**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch.md) オブジェクトの [**Recognize**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch-recognize.md) メソッドを使用して、画像を認識します。
7. FlexiCapture Processor でドキュメントを処理していたときと同じ方法で、バッチ内のドキュメントを処理します。
8. 検証プロセスを実行して認識データを確認します。[**Project**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/project.md) オブジェクトの [**StartVerification**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/project-startverification.md) メソッド、または [**Batch**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch.md) オブジェクトの [**StartVerification**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch-startverification.md) メソッドを呼び出します。
9. 結果をエクスポートします。[**Project**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/project.md) オブジェクトの [**Export**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/project-export.md) メソッド、または [**Batch**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch.md) オブジェクトの [**Export**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch-export.md) メソッドを呼び出します。

## 関連項目

[あらかじめ設定された ABBYY FlexiCapture プロジェクトの使用開始](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/tutorialproject-overview.md)
