> ## 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 4: Recognize Documents

During document processing, the program selects the [Document Definition](https://docs.abbyy.com/flexi-capture/sdk/api-reference/documentdefinition.md#document-definition) appropriate for the document pages, applies it, and recognizes the data in the regions found on the document with the help of the selected Document Definition.

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

ABBYY FlexiCapture 12 SDK allows you to perform all these processing steps using just one method — the **Recognize** method of the [**Project**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/project.md) or [**Batch**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch.md) objects. You can specify the documents to process, recognition mode, and Document Definitions that should be applied.

> [accordion] C++ (COM) code
>
> ```cpp theme={null}
> FCEngine::IEnginePtr Engine;
> // Create the Engine object
> ...
> // Open a project
> FCEngine::IProjectPtr project = Engine->OpenProject( "D:\\TestProject\\TestProject.fcproj" );
> // Add a new batch
> FCEngine::IBatchPtr batch = project->Batches->AddNew( L"TestBatch" );
> // Open the batch
> batch->Open();
> // Add some images to the batch
> ...
> // Recognize the documents
> batch->Recognize( 0, FCEngine::RM_ReRecognizeMinimal, 0 );
> ...
> ```

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

## Additionally

If you want to match additional Document Definitions or match sections of a Document Definition to particular pages manually, you can use the [**ApplyDocumentDefinitions**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/project-applydocumentdefinitions.md) method of the **Project** object or the [**ApplyDocumentDefinitions**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch-applydocumentdefinitions.md) and [**ForceApplyDocumentDefinition**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch-forceapplydocumentdefinition.md) methods of the **Batch** object.

After recognition, you can immediately [export the recognition results](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/engine-exporting.md), or:

* [work with recognized text from particular fields](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/workingwithrecognizeddata.md),
* [verify the recognized data](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/verifyingrecognizeddata.md).

Note that if you want to work with a recognized document, you will need to [open it for reading or writing](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/document-using.md).

## See also

[Step 5: Export Results](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/engine-exporting.md)

[Step 3: Add Images](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/engine-addingimages.md)
