Indigo barcode recognition engine

Fast and accurate barcode recognition engine

Sample code

If you are using or plan to use the engine within your application, make sure you have a license for it, or ask us for a one month free of charge trial license that will disable the build in protection.
C# code

IndigoBarcodeX.IndigoBarcodeReader br = new IndigoBarcodeX.IndigoBarcodeReader();
br.Initialize("", "");
IndigoBarcodeX.IndigoBarcodes barcodes = br.DetectBarcodesFromFile(@"c:\test.tif", 0);
foreach (IndigoBarcodeX.IndigoBarcode bc in barcodes)
{
    MessageBox.Show("Barcode string: " + bc.BarcodeString + ", barcode type: " + bc.BarcodeTypeName);
}


VB code (COM)

Dim fileName
fileName = "c:\test.tif"

Set barcodeReader = CreateObject ("IndigoBarcodeX.IndigoBarcodeReader")
barcodeReader.Initialize("", "")
Set barcodes = barcodeReader.DetectBarcodesFromFile(fileName, 0)
for each barcode in barcodes
    MsgBox "Barcode string: " + barcode.BarcodeString + ", barcode type: " + barcode.BarcodeTypeName
next


C++ code (native dll)
You will have to add to the project the IndigoBarcode.cpp and IndigoBarcode.h files; these files can be found in the installation directory, under Bin\DLLInterface

IndigoBarcodeDetector* pDetector = 0;
pDetector = new IndigoBarcodeDetector;
memset( pDetector, 0x00, sizeof(IndigoBarcodeDetector) );
pDetector->MaximumBarcodeCount = 200;

IndigoBarcode arrBarcodes[200];
memset( arrBarcodes, 0x00, sizeof( IndigoBarcode ) );
pDetector->DetectedBarcodes = arrBarcodes;

char* pWKDir = 0;
pWKDir = GetWorkingDirectory();

char fname[1024];
sprintf(fname, "c:\\test.tif");
char buffer[1024];
sprintf(buffer, "%s\\IndigoBarcode.dll", pWKDir);
int page = 0;

IndigoBarcodeDllPath(buffer);
int ret = IndigoDetectBarcodeFromFile(pDetector, fname, page);
for ( i = 0; i < pDetector->DetectedBarcodeCount; i++ )
{
    // use pDetector->DetectedBarcodes[i]
}