KA Barcode Reader for Java Library
How to scan, read 2d, linear barcodes in Java applications?

Scanning & Reading 20+ linear, 2d barcode images in Java Class
Java Barcode Reader library


  • Easy to integrate into Java applications
  • JDK 1.4.2 and later version is supported.
  • GIF, JPEG, PNG, TIFF files and Java AWT image objects supported
  • Support multi-page TIFF document
  • Support multi-barcode in one image
  • Fast Reading Speed
Barcode Reader for Java - Overview
Barcode Reader for Java is a mature and reliable barcode scanner component, reading linear and 2D barcodes in Java class easily and quickly. Users can operate this barcode reader without any difficulty and a variety of barcode scan settings are provided.
Developer Guide for Java Barcode Reader
Requirement
  • JDK 1.4.2 or later
Install
  • Put 'com.keepautomation.barcodereader.jar' into your Java project classpath.
  • To read TIFF and Bitmap image, you need two extra .jars from Sun Microsystem. 'jai_codec.jar', 'jai_core.jar
Supporting Types
  • QR Code
  • PDF 417
  • Data Matrix

  • Codabar
  • Code39
  • Code39Ex
  • Code128
  • EAN8
  • EAN13
  • Interleaved25
  • UPCA
  • UPCE
How to Start


How to read barcodes from an image file

import com.keepautomation.barcodereader.BarcodeReader;
import com.keepautomation.barcodereader.BarcodeType;
...
String[] msgs = BarcodeReader.readBarcodeMessage("C:/Sample.png", BarcodeType.Code128);
...


How to read barcodes from a BufferedImage

import com.keepautomation.barcodereader.BarcodeReader;
import com.keepautomation.barcodereader.BarcodeType;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
...
BufferedImage bi = ImageIO.read(new File("C:/Sample.png"));
String[] msgs = BarcodeReader.readBarcodeMessage(bi, BarcodeType.Code128);
...


How to read barcode from a specified area in the image

import com.keepautomation.barcodereader.BarcodeReader;
import com.keepautomation.barcodereader.BarcodeType;
import com.keepautomation.barcodereader.Region;
import java.util.ArrayList;
...
ArrayList<Region> regions = new ArrayList<Region>();
//  xMin: Minimum X of the scan area, in % of the image width.
//  xMax: Maximum X of the scan area, in % of the image width.
//  yMin: Mimimum Y of the scan area, in % of the image height.
//  yMax: Maximum Y of the scan area, in % of the image height.
regions.add(new Region(0F, 100F, 0F, 20F));
String[] msgs = BarcodeReader.readBarcodeMessage("C:/Sample.png", BarcodeType.Code128, regions);
...
Barcode Generator for Java - Licenses & Prices