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

# ExtractBarcodes Method of the FRPage Object

This method finds and recognizes all barcode blocks on an image, no other blocks are processed.

## Syntax

### C++

```cpp theme={null}
HRESULT ExtractBarcodes(
  IBarcodeParams*           BarcodeParams,
  IObjectsExtractionParams* ExtractionParams
);
```

### C\#

```csharp theme={null}
void ExtractBarcodes(
  IBarcodeParams           BarcodeParams,
  IObjectsExtractionParams ExtractionParams
);
```

### Visual Basic .NET

```vb theme={null}
Sub ExtractBarcodes( _
  [BarcodeParams As IBarcodeParams = Nothing], _
  [ExtractionParams As IObjectsExtractionParams = Nothing] _
)
```

## Parameters

BarcodeParams

\[in] The [BarcodeParams](/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/barcodeparams) object that stores parameters of barcode recognition. This parameter may be 0. In this case, the page is analyzed with default parameters (all barcode recognition parameters are set to default values), or, if a [profile](/fine-reader/engine/guided-tour/advanced-techniques/working-with-profiles) has been loaded, the parameters set by this profile are used.

ExtractionParams

\[in] The [ObjectsExtractionParams](/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/objectsextractionparams) object that stores parameters of objects extraction. This parameter may be 0. In this case, the objects are extracted with default parameters, or, if a [profile](/fine-reader/engine/guided-tour/advanced-techniques/working-with-profiles) has been loaded, the parameters set by this profile are used.

## Return values

If recognition is interrupted by the user, this method will return E\_ABORT. It also returns the [standard return codes of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## Remarks

* All existing blocks are deleted from the page.
* The method does not report any events to the listeners attached to the IConnectionPointContainer interface of the [FRPage](/fine-reader/engine/api-reference/document-related-objects/frpage).

## See also

[FRPage](/fine-reader/engine/api-reference/document-related-objects/frpage)

[IPageAnalysisParams::DetectBarcodes](/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/pageanalysisparams#detectbarcodes)

[Working with Profiles](/fine-reader/engine/guided-tour/advanced-techniques/working-with-profiles)
