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

Syntax

C++

HRESULT ExtractBarcodes(
  IBarcodeParams*           BarcodeParams,
  IObjectsExtractionParams* ExtractionParams
);

C#

void ExtractBarcodes(
  IBarcodeParams           BarcodeParams,
  IObjectsExtractionParams ExtractionParams
);

Visual Basic .NET

Sub ExtractBarcodes( _
  [BarcodeParams As IBarcodeParams = Nothing], _
  [ExtractionParams As IObjectsExtractionParams = Nothing] _
)

Parameters

BarcodeParams [in] The 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 has been loaded, the parameters set by this profile are used. ExtractionParams [in] The 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 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.

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.

See also

FRPage IPageAnalysisParams::DetectBarcodes Working with Profiles