void ReadBarcodes1D(string imageFile)
{
// Create objects and open input images
CiServer ci = Inlite.ClearImageNet.Server.GetThreadServer();
CiBarcodePro reader = ci.CreateBarcodePro();
reader.Image.Open(imageFile, 1);
// Configure reader
reader.Type = FBarcodeType.cibfCode39 | FBarcodeType.cibfCode128; // Select barcode types to read
// reader.AutoDetect1D = true; // Enable automatic detection of barcode type (Slower processing)
// reader.Directions = FBarcodeDirections.cibHorz; // Limit barcode search direction (Faster processing)
reader.Find(0);
foreach (CiBarcode Barcode in reader.Barcodes)
Console.WriteLine(Barcode.Text);
}
Sub ReadBarcodes1D(imageFile As String)
' Create objects and open input images
Dim ci As CiServer = Inlite.ClearImageNet.Server.GetThreadServer()
Dim Barcode As CiBarcode
Dim reader As CiBarcodePro = ci.CreateBarcodePro()
reader.Image.Open(imageFile, 1)
' Configure reader
reader.Type = FBarcodeType.cibfCode39 + FBarcodeType.cibfCode128 ' Select barcode types to read
' reader.AutoDetect1D = True ' Enable automatic detection of barcode type (Slower processing)
' 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