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

# Project オブジェクト（IProject インターフェイス）

このオブジェクトはプロジェクトを表します。*プロジェクト*には、ドキュメント[バッチ](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch.md#batch)と、その処理に必要なすべての設定 ([ドキュメント定義](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/documentdefinition.md)、画像のロードや結果のエクスポートに関するパラメーターなど) が含まれます。プロジェクトのドキュメントバッチには **Batches** プロパティから、設定には **Properties** プロパティおよび **DocumentDefinitions** プロパティからアクセスできます。このオブジェクトには、識別子、タイトル、プロジェクトのパスなど、プロジェクトのさまざまな属性にアクセスするためのプロパティと、文書処理を行うための一連のメソッドが用意されています。

プロジェクトは ABBYY FlexiCapture で設定し、同じ構成のまま ABBYY FlexiCapture SDK で使用する必要があります。プロジェクトの設定のほとんどは読み取り専用です。

> [!WARNING]
>
> プロジェクト内のオブジェクトへの参照を使用している間は、**Project** オブジェクトへの参照を保持する必要があります。**Project** オブジェクトへの参照を解放した後もそのサブオブジェクトを使用していると、エラーが発生します。詳細については、[Properties の操作](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md)を参照してください。

**Project** オブジェクトは、いわゆる「[接続可能なオブジェクト](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/connectableobjects.md)」です。**Project** オブジェクトのメソッドは、専用の発信インターフェースを通じて、ページの処理の進行状況に関する情報を通知します。これらのインターフェースは、[**IBatchEvents**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/ibatchevents.md) (C++ 用) とディスパッチインターフェイス [**DIBatchEvents**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/ibatchevents.md) (Visual Basic 用) です。なお、Visual Basic にはイベントインターフェースを簡単に処理する手段が用意されているため、Visual Basic のユーザーがその実装の詳細を意識する必要はありません。

## Properties

| **名前** | **型** | **説明** |
| - | - | - |
| **Batches** | [**Batches**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batches.md), [読み取り専用](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | プロジェクトのバッチのコレクションを返します。 |
| **BatchTypes** | [**BatchTypes**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batchtypes.md), 読み取り専用 | プロジェクトで定義されているバッチタイプのコレクションを返します。 |
| **ClassifiсationTrainingBatches** | [**ClassificationTrainingBatches**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/classificationtrainingbatches.md), [読み取り専用](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | プロジェクトの分類トレーニングバッチのコレクションを返します。 |
| **Comment** | [**String**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md), 読み取り専用 | プロジェクトの説明テキストを格納します。 |
| **DocumentDefinitions** | [**DocumentDefinitions**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/documentdefinitions.md), [読み取り専用](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | プロジェクトのドキュメント定義のコレクションを返します。 |
| **Errors** | [**StringsCollection**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/stringscollection.md), [読み取り専用](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | エラーメッセージのコレクションを返します。このコレクションには、**ImportImages**、**ApplyDocumentDefinitions**、**Recognize**、または **Export** メソッドを最後に実行した際に発生したエラーの説明が含まれます。同じメッセージは [**IBatchEvents::OnError**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/ibatchevents-onerror.md) メソッドでも受け取ることができます。 |
| **FieldsExtractionTrainingBatches** | [**FieldsExtractionTrainingBatches**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fieldsextractiontrainingbatches.md), [読み取り専用](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | field 抽出用の学習用バッチのコレクションを返します。 |
| **Id** | [**String**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md), 読み取り専用 | プロジェクトの識別子を返します。 |
| **LanguageDatabase** | [**PredefinedLanguages**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/predefinedlanguages.md), [読み取り専用](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | プロジェクトの言語のコレクションにアクセスできます。 |
| **Password** | [**String**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md), 読み取り専用 | プロジェクトにアクセスするためのパスワードを指定します。 |
| **Path** | [**String**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md), 読み取り専用 | プロジェクトフォルダーのフルパスを返します。 |
| **Properties** | [**ProjectProperties**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/projectproperties.md), [読み取り専用](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | プロジェクトのプロパティを返します。プロパティには、画像のロードや結果のエクスポートなどのパラメーターが含まれます。 |
| **Title** | [**String**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md), 読み取り専用 | プロジェクトの名前を格納します。 |
| **Warnings** | [**StringsCollection**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/stringscollection.md), [読み取り専用](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | 警告メッセージのコレクションを返します。このコレクションには、**ImportImages**、**ApplyDocumentDefinitions**、**Recognize**、または **Export** メソッドを最後に実行した際に発生した警告の説明が含まれます。同じメッセージは [**IBatchEvents::OnWarning**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/ibatchevents-onwarning.md) メソッドでも受け取ることができます。 |

## メソッド

| **名前** | **説明** |
| - | - |
| [**ApplyDocumentDefinitions**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/project-applydocumentdefinitions.md) | 指定したバッチ内のドキュメントにドキュメント定義を適用します。 |
| [**Close**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/project-close.md) | プロジェクトを閉じ、リソースを解放します。 |
| [**CreateBatchTypeParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/project-createbatchtypeparams.md) | バッチタイプパラメーターオブジェクトを作成します。 |
| [**Export**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/project-export.md) | プロジェクトの処理結果を保存します。 |
| [**ExportToMemory**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/project-exporttomemory.md) | プロジェクトの処理結果をメモリに保存します。 |
| [**ImportImages**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/project-importimages.md) | プロジェクトのバッチに画像をインポートします。 |
| [**Recognize**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/project-recognize.md) | プロジェクト内の指定したバッチに含まれるドキュメントを認識します。 |
| [**StartVerification**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/project-startverification.md) | プロジェクト内の指定したバッチに含まれるドキュメントを検証します。 |

## 関連オブジェクト

![](https://mintcdn.com/abbyy/DG4YBah30S0eFFo5/images/flexi-capture/sdk/Project.gif?s=607821b7361e196a12fbe9b3f9ca1ed0)

## 出力パラメーター

このオブジェクトは、[**Engine**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine.md) オブジェクトの [**CreateInvoiceProject**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine-createinvoiceproject.md)、[**CreateReceiptProject**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine-createreceiptproject.md)、[**OpenProject**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine-openproject.md)、[**CreateProject**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine-createproject.md) の各メソッドの出力パラメーターです。

## サンプル

> [accordion] C++ (COM) コード
>
> ```cpp theme={null}
> // グローバルな ABBYY FlexiCapture SDK の Engine オブジェクト。
> FCEngine::IEnginePtr Engine;
> ...
> // プロジェクトを開く
> FCEngine::IProjectPtr project = Engine->OpenProject("D:\\TestProject\\TestProject.fcproj");
> // プロジェクトのバッチリストを取得する
> FCEngine::IBatchesPtr batches = project->GetBatches();
> ...
> ```

このオブジェクトは、すべての[コード サンプル](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/samples.md)で使用されています。

## 関連項目

[**IBatchEvents**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/ibatchevents.md)

[Properties の操作](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md)
