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

# ImageGroupingParams Object (IImageGroupingParams Interface)

This object allows you to tune the parameters that determine the principles of adding images to documents. To configure image grouping parameters, set the **GroupingRule** property. Subsequent settings depend on the value selected for this property. By default every image page is added to separate document.

## Properties

| **Name** | **Type** | **Description** |
| - | - | - |
| **BarcodeType** | [**BarcodeTypeEnum**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/barcodetypeenum.md) | Specifies the barcode type which should be used for image grouping. The value of this property is used only if the **GroupingRule** property is set to [PG\_GroupPagesByBarcode](https://docs.abbyy.com/flexi-capture/sdk/api-reference/pagesgroupingenum.md#ig-grouppagesbybarcode). By default the value of this property is BT\_AutodetectNoPost. |
| **BarcodeValue** | [**String**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/propertiestypes.md) | Specifies the value of the barcode which should be used for image grouping. The value of this property is used only if the **GroupingRule** property is set to [PG\_GroupPagesByBarcode](https://docs.abbyy.com/flexi-capture/sdk/api-reference/pagesgroupingenum.md#ig-grouppagesbybarcode). The default value of this property is an empty string. |
| **DeleteDelimiters** | [**Boolean**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/propertiestypes.md) | Specifies whether delimiters (blank pages or barcode pages) should be deleted after image grouping. The value of this property is used only if the **GroupingRule** property is set to [PG\_GroupPagesByEmptyPageDelimiters](https://docs.abbyy.com/flexi-capture/sdk/api-reference/pagesgroupingenum.md#ig-grouppagesbyemptypagedelimiters) or [PG\_GroupPagesByBarcode](https://docs.abbyy.com/flexi-capture/sdk/api-reference/pagesgroupingenum.md#ig-grouppagesbybarcode). By default the value of this property is FALSE. |
| **GroupingRule** | [**PagesGroupingEnum**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/pagesgroupingenum.md) | Specifies the rule of grouping images into documents. By default the value of this property is PG\_GroupPagesByPagesCount. |
| **PagesCount** | [**Integer**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/propertiestypes.md) | Specifies the number of pages in a document. The value of this property is used only if the **GroupingRule** property is set to [PG\_GroupPagesByPagesCount](https://docs.abbyy.com/flexi-capture/sdk/api-reference/pagesgroupingenum.md#ig-grouppagesbypagescount). By default the value of this property is 1. |

## Methods

| **Name** | **Description** |
| - | - |
| [**CopyFrom**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/copyfrom.md) | Initializes properties of the current object with values of similar properties of another object. |

## Related objects

![](https://mintcdn.com/abbyy/DG4YBah30S0eFFo5/images/flexi-capture/sdk/ImageGroupingParams.gif?s=02b6ffad75be7e63549978d42d89cd4b)

## Remarks

Here are some tips on how to use a barcode page to separate the image flow into documents:

1. When adding your images for processing, make sure that between every two documents is inserted a special page containing barcodes only and no relevant information. You can see an example of such page in SampleImages folder (located in the [Code Samples Folder](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/samples.md#samples-folder)).
2. Set the **GroupingRule** property of this object to [PG\_GroupPagesByBarcode](https://docs.abbyy.com/flexi-capture/sdk/api-reference/pagesgroupingenum.md#ig-grouppagesbybarcode) and specify the type of the barcode you use in the **BarcodeType** property or the value of the barcode you use in the **BarcodeValue** property.
3. To delete the separator pages after the grouping set the **DeleteDelimiters** property to TRUE.

The notes above describe just one of the possible uses of this object. For more details see [Tips for Document Separation](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/tipsfordocsseparation.md) section.

## Output parameter

This object is the output parameter of the [**CreateImageGroupingParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/engine-createxxx.md) method of the [**Engine**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/engine.md) object.

## Input parameter

This object is the input parameter of the [**AddImages**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch-addimages.md) method of the [**Batch**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch.md) object.

## See also

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

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

[Working with Properties](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/properties.md)

[Tips for Document Separation](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/tipsfordocsseparation.md)
