Code 128 Image Sample -
.NET Barcode Reader SDK Building up Perfect Quality Barcode Reading Software for .NET Online Demo Download Trial Purchase Now

How to Scan ITF-14 in C# & VB.NET

back to home  >  .NET Barcode Reader SDK  >  Recognize Barcodes in .NET  >  How to Scan ITF-14 in C# & VB.NET

There are nine linear barcode symbologies supported by pqScan .NET Library for Barcode Scanning, including ITF-14 barcode symbol. And this page is an online tutorial for how to read and decode ITF-14 barcode from loaded image file using C# and VB.NET programming codes. Please firstly download this mature .NET barcode decoder library free trial online, and then follow this guide to have a test.

In all, three parts are included on this tutorial. In the first and second parts, you will get free C# sample code and VB.NET sample code for scanning and decoding ITF-14 1D barcodes from image source. Then, the third part will tell you the supported .NET ITF-14 barcode recognition functions that can be implemented in Visual C# and Visual Basic applications. Now, let's see details as below.

C# Sample for ITF-14 Scanning

By using the following C# sample code in your Visual Studio .NET barcode recognition application, you can easily decode and read ITF-14 barcode from a local image file. Certainly, you may also have a try with provided C#.NET APIs to recognize ITF-14 linear barcode from an image string or a bitmap of image file.

public void ScanITF14FromFile(string filename)
  // Free C# demo code for reading ITF-14 1d barcode from a local image file.
  BarcodeResult[] results = BarCodeScanner.Scan(filename, BarCodeType.ITF14);

  // Free C# APIs for reading ITF-14 1d barcode from an image stream or a bitmap of image.
  // public static BarcodeResult[] Scan(Bitmap bitmap, BarCodeType barType);
  // public static BarcodeResult[] Scan(Stream stream, BarCodeType barType);

  foreach (BarcodeResult result in results)
    Console.WriteLine(result.BarType.ToString() + "-" + result.Data);

In addition to specify a barcode type to decode, you can directly use the following C# demo code to implement more accurate barcode scanning and reading. And this method is suitable when there's only one ITF-14 barcode on your image source.

Bitmap bmp = new Bitmap("YourImagePath");
BarcodeResult barcode = BarCodeScanner.ScanSingle(bmp);
Console.WriteLine("barcode data:{0}.", barcode.Data);

VB.NET Sample for ITF-14 Scanning

Different from above C#.NET class code which defines ITF-14 as the only barcode type to be decoded, the following VB.NET sample code can be used to detect and read all barcode symbologies from loaded image file. Respective APIs for ITF-14 decoding from image stream or bitmap of image are still offered.

Public Sub ScanAllFromFile(ByVal filename As String)
  ' Free Visual Basic class code for decoding ITF-14 barcode from a local image file.
  Dim results() As BarcodeResult = BarCodeScanner.Scan(filename)

  ' Free Visual Basic APIs for decoding ITF-14 barcode from an image stream or a bitmap of image.
  ' public static BarcodeResult[] Scan(Bitmap bitmap)
  ' public static BarcodeResult[] Scan(Stream stream)

  Dim result As BarcodeResult
  For Each result In results
    Console.WriteLine(result.BarType.ToString() + "-" + result.Data)
End Sub

For single ITF-14 barcode scanning and reading in VB.NET project, please use the following VB.NET demo code.

' Used to improve barcode decoder accuracy when there's only one ITF-14 on your image.
Dim bmp As Bitmap = New Bitmap("YourImagePath") 
Dim barcode As BarcodeResult = BarCodeScanner.ScanSingle(bmp) 
Console.WriteLine("barcode data:{0}.", barcode.Data)

ITF-14 Recognition Functions for C# & VB

User-defined ITF-14 Reading Methods

By using well-developed .NET APIs, C# and VB.NET programmers may choose to read ITF-14 barcode type only or read all barcodes from image source. As you see, the above free demos explain for each.

Support Rotated ITF-14 Barcode Decoding

If your ITF-14 linear barcode is rotated on image file in 180 degrees, it can also be detected and recognized at fast speed. And the recognition result will include both barcode type and barcode data in array form.

Support Several Image Files in Three Forms

You are able to load Jpg/Jpeg, Gif, Png, Bmp, and Tiff/Tif image files into Visual Studio C# or VB.NET project and read ITF-14 bar codes. All these image files can be loaded as image string, image stream or bitmap of image.

pqScan SDK
Barcode Reader Lib in .NET
Online Guide
How to Scan Barcode in .NET How to Scan Barcode Using C# How to Scan Barcode Using VB
Barcode Type
Read QR Code in C#/VB Project Read PDF-417 in C#/VB Project Read Data Matrix in C#/VB Project Read Aztec Code in C#/VB Project Read Code 128 in C#/VB Project Read Code 39 in C#/VB Project Read EAN-13 in C#/VB Project Read EAN-8 in C#/VB Project Read UPC-A in C#/VB Project Read UPC-E in C#/VB Project Read Code 93 in C#/VB Project Read Codabar in C#/VB Project View All Barcodes >>
In my 10 years of experience, I have seen very few companies who have the class of quality, service and support. pqScan is one of them. Michael Hughes