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

# Recognize Method of the Project Object

This method performs recognition of the documents in the specified batches of the project. You can process all the documents from the project or specify particular batches to recognize documents from. Depending on the selected recognition mode the method performs full recognition procedure (selects a Document Definition, applies it and performs data recognition), or fulfill only some steps of the procedure.

## Syntax

```vb Visual Basic .NET theme={null}
Sub Recognize( _
  BatchIds As IntsCollection, _
  RecognitionMode As RecognitionModeEnum _
)
```

```cpp C++ theme={null}
HRESULT Recognize(
  IIntsCollection*   BatchIds,
  RecognitionModeEnum RecognitionMode
);
```

## Parameters

**BatchIds**

\[in] This parameter refers to the [**IntsCollection**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/intscollection.md) object that contains a set of identifiers of the batches to recognize documents from. This parameter is optional and may be set to 0, in which case all the batches of the project are recognized.

**RecognitionMode**

\[in] This variable of the [**RecognitionModeEnum**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/recognitionmodeenum.md) type specifies the mode of recognition. This parameter is optional. By default only documents with changed Document Definitions and documents from the batches which were changed are recognized (the RM\_ReRecognizeMinimal mode is used).

## Return values

It also returns [the standard return codes of the ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## Remarks

* During this method call documents in the project can be reorganized, e.g. documents can be merged or split depending on the Document Definitions applied to them, also some document identifiers can be changed.
* To recognize only several documents from the batch, use the [**Recognize**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch-recognize.md) method of the [**Batch**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch.md) object.

## See also

[**Project**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/project.md)

[**IBatch::Recognize**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch-recognize.md)
