Nicomsoft OCR: Developer's Guide


Blk_GetBarcodeType


Syntax

C++:int Blk_GetBarcodeType(HBLK BlkObj, int BarcodeInd)
C#:int Blk_GetBarcodeType(int BlkObj, int BarcodeInd)
Visual Basic:Function Blk_GetBarcodeType(ByVal BlkObj As Integer, ByVal BarcodeInd As Integer) As Integer
Java:int Blk_GetBarcodeType(HBLK BlkObj, int BarcodeInd)
Delphi:function Blk_GetBarcodeType(BlkObj:HBLK; BarcodeInd:integer):integer


Description

Retrieves the type of the specified barcode after recognition.


Parameters

BlkObj [IN] – the Block object. You can also specify the Image object if you want to work with the global list of barcodes for the entire image.
BarcodeInd [IN] – the barcode index.


Return value

Barcode type if success, otherwise an error code. Please see the BARCODE_TYPE_XXXXX constants for possible values.


Remarks

The OCRSTEP_OCR step must be executed before calling this function.


Example

See the sample code for the Blk_GetBarcodeCnt function.