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

# Step 3: Add Images

When the project is opened, you can add new images to the project for processing. When images are added, they are grouped into documents. The documents in the project are added to batches. The principle of assigning documents to batches is user-defined: you can process all documents in a single batch, or form batches from documents added on the same date or from a batch scanned in a single pass.

![](https://mintcdn.com/abbyy/DG4YBah30S0eFFo5/images/flexi-capture/sdk/TutorialProject_AddImages.jpg?fit=max\&auto=format\&n=DG4YBah30S0eFFo5\&q=85\&s=b2be35110c2fa2070e56975a2ed3ea7e)

ABBYY FlexiCapture SDK provides a group of objects which reproduce the logical organization of the project. The [**Batch**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch.md) and the [**Project**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/project.md) objects correspond to a batch and a project respectively. The **Project** object contains a collection of **Batch** objects, which is represented by the [**Batches**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batches.md) object. This collection is available through the **Batches** property of the **Project** object. Each batch contains a set of documents, which are accessible through the **Documents** property of the **Batch** object. The documents are represented by the [**Documents**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/document.md) object, and one document is represented by the [**Document**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/document.md) object.

To add images to the project:

1. Add a new batch to the project using the [**AddNew**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batches-addnew.md) method of the [**Batches**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batches.md) object.
2. Open the batch with the help of the [**Open**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch-open.md) method of the [**Batch**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch.md) object. You can work with a particular batch (add images, recognize documents, etc.) only if it is open.
3. Add an image to the batch with the help of the [**AddImage**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch-addimage.md) method of the **Batch** object. If you want to add several images at a time, you can use the [**AddImages**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch-addimages.md) method of the **Batch** object. Using the latter method, you can also set different parameters for adding images.

> [accordion] C++ (COM) code
>
> ```cpp theme={null}
> FCEngine::IEnginePtr Engine;
> // Create the Engine object
> ...
> // Open a FlexiCapture project
> FCEngine::IProjectPtr project = Engine->OpenProject( L"D:\\TestProject\\TestProject.fcproj" );
> ...
> // Add a new batch
> FCEngine::IBatchPtr batch = project->Batches->AddNew( L"TestBatch" );
> // To work with the batch you must open it
> batch->Open();
> // Add the images
> batch->AddImage( L"D:\\SampleImages\\0001.tif" );
> batch->AddImage( L"D:\\SampleImages\\0002.tif" );
> batch->AddImage( L"D:\\SampleImages\\0001.tif" );
> ...
> ```

This procedure is used in the ABBYY FlexiCapture 12 SDK samples which can be found in the **Samples** folder (Start > Programs > ABBYY FlexiCapture 12 SDK > Code Samples Folder).

After the images are added, you can [recognize documents](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/engine-recognizing.md) and [export the results](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/engine-exporting.md).

## Additionally

You can configure the import of all image files from a [hot folder](https://docs.abbyy.com/flexi-capture/sdk/api-reference/project-importimages.md) without specifying particular file names.

ABBYY FlexiCapture 12 SDK also provides [scanning](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/scanning.md) functionality, so you can implement the scanning the paper documents and adding them to a batch.

## See also

[Step 4: Recognize Documents](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/engine-recognizing.md)

[Step 2: Open Project](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/engine-openingproject.md)
