Please firstly download pqScan Java Barcode Scanner SDK free trial package online. And you may find a jar file called pqScan.BarcodeReader.jar in this Java package. Copy it to your created Java project folder, and then add it to Java classpath. Now, you can use provided APIs to implement accurate ITF-14 barcode recognition from image file.
Java ITF-14 Barcode Recognition
Are you searching to find a cost-effective barcode scanner library for Java? If so, pqScan Java Barcode Scanner Control should be considered. We provide affordable developer licensing price for this software. If you need Java sample code for using our product to recognize ITF-14, then see details on this online tutorial. You will be guided to install barcode scanner SDK into Java application and use robust APIs to implement high speed ITF-14 linear barcode reading.
With the help of this professional barcode recognition solution, Java programmers can easily detect and read ITF-14 bar code from Bmp, Gig, Jpeg, Png, and Tiff image files, as well as Java AWT image object. Java applications like Swing, Applet, Java Bean, J2SE are supported. Using well-designed APIs, you can achieve different ITF-14 1D barcode scanning effects. Please see details as below.
Specify Only ITF-14 to Be Recognized
Our barcode scanner control for Java allows programmers to specify a barcode type to be read using mature APIs. That is to say, only ITF-14 bar code symbols will be detected and recognized from image source. And your image file can be loaded in the forms of image string and stream.
// Read ITF-14 from image file on your local disk in Java class. public static BarcodeResult[] Scan(String filename, BarCodeType barType); // Read ITF-14 from buffered image object in Java class. public static BarcodeResult[] Scan(BufferedImage image, BarCodeType barType); // Read ITF-14 from input stream object in Java class. public static BarcodeResult[] Scan(InputStream imageStream, BarCodeType barType);
Allow ALL Barcode Symbols to Be Recognized
In addition to reading a single barcode type from image file, Java programmers can use three APIs to read all barcode symbols in Java project. These APIs are particularly suitable if you want to read both ITF-14 bar codes and other linear & two-dimensional barcodes from image file in Java class programming.
// Decode various barcodes from image file on your local disk in Java class. public static BarcodeResult[] Scan(String filename); // Decode various barcodes from buffered image object in Java class. public static BarcodeResult[] Scan(BufferedImage image); // Decode various barcodes from input stream object in Java class. public static BarcodeResult[] Scan(InputStream imageStream);
To help Java programmer quickly implement fast ITF-14 linear bar code recognition, we provide a free sample code here. You may copy and paste it into your Java class application and see scanning result. By the way, the result will include barcode type and data information simultaneously.
import com.pqscan.barcodereader.BarcodeResult; import com.pqscan.barcodereader.BarcodeScanner; import com.pqscan.barcodereader.BarCodeType; public class ReadITF14Demo { public static void main(String[] args) { try { // Load a Jpg image file and read ITF-14 on it. BarcodeResult[] results = BarcodeScanner.Scan("C:/sample.jpg", BarCodeType.ITF14); for(int i = 0; i < results.length; i++) { // Show ITF-14 reading result. System.out.println(results[i].getData() + "--" + results[i].getBarType()); } } catch (Exception e) { e.printStackTrace(); } } }