- Support reading popular 2D barcodes in Java: QR Code, Aztec Code, PDF417 and Data Matrix.
- Support decoding popular 1D (linear) barcodes in Java: Codabar, Code 128, Code 39, Code 93, EAN-13, EAN-8, UPC-A, UPC-E, and ITF-14.
- Support scanning barcodes from most commonly used raster image formats (BMP, TIF/TIFF, JPG/JPEG, PNG, and GIF).
- Support recognizing multi-barcodes from one image file source.
- Support detecting and reading multi-type barcodes at one time.
- Support JDK 1.7 and above versions.
- Support all Java applications.
How to Scan Barcode in Java
pqScan Java Barcode Scanner is a professional Java SDK that reads and recognizes barcodes from image files such as BMP, PNG, JPEG, TIFF, GIF and Java AWT objects. Image source can be loaded from image stream and local image file. By integrating this superior barcode reading component into your Java application, highly accurate and fast linear and 2d bar codes recognition from image file can be implemented.
pqScan Java Barcode Scanner Library will always read image file source from 4 different directions and decode barcodes detected. Simply speaking, you can use mature APIs to read only one barcode type from loaded image or recognize all barcode types from it. At most of the time, Java barcode image scanning component detects barcode symbol very fast and decodes it accurately. It will return barcode type and data information for each decoded 1D and 2D barcode. Certainly, it may take a little more time to read barcode in large image file.
pqScan Java Barcode Scanner Control provides flexible methods to help programmers read and decode barcode fonts from images in Java programming class. Now, we will introduce you all these robust barcode scanning APIs.
// Detect and read all barcodes from image source on local disk. public static BarcodeResult[] Scan(String filename); // Scan and recognize all barcodes from buffered image object. public static BarcodeResult[] Scan(BufferedImage image); // Scan and decode all barcodes from input stream object. public static BarcodeResult[] Scan(InputStream imageStream); // Detect and scan one barcode symbol from local image file. public static BarcodeResult[] Scan(String filename, BarCodeType barType); // Decode and recognize one barcode symbol from buffered image object. public static BarcodeResult[] Scan(BufferedImage image, BarCodeType barType); // Read and scan one barcode symbol from input stream object. public static BarcodeResult[] Scan(InputStream imageStream, BarCodeType barType);