void ReadBarcodes2D(string imageFile)
{
// Create objects and open input images
CiServer ci = Inlite.ClearImageNet.Server.GetThreadServer();
CiPdf417 reader = ci.CreatePdf417(); // To read PDF416 barcodes
// CiDataMatrix reader = ci.CreateDataMatrix(); // To read DataMatrix barcodes
// CiQR reader = ci.CreateQR(); // To read QR barcodes
reader.Image.Open(imageFile, 1);
// Configure reader
// reader.Directions = FBarcodeDirections.cibHorz; // Limit barcode search direction (Faster processing)
reader.Find(0);
foreach (CiBarcode Barcode in reader.Barcodes)
Console.WriteLine(Barcode.Text);
}
Sub ReadBarcodes2D(imageFile As String)
' Create objects and open input images
Dim ci As CiServer = Inlite.ClearImageNet.Server.GetThreadServer()
Dim Barcode As CiBarcode, reader As Object
reader = ci.CreatePdf417() ' To read PDF416 barcodes
' reader = ci.CreateDataMatrix() ' To read DataMatrix barcodes
' reader = ci.CreateQR() ' To read QR barcodes
reader.Image.Open(imageFile, 1)
' Configure reader
' reader.Directions = FBarcodeDirections.cibHorz ' Limit barcode search direction (Faster processing)
reader.Find(0)
For Each Barcode In reader.Barcodes
Console.WriteLine(Barcode.Text)
Next
End Sub