QR Code Image Sample - pqScan.com
Java EAN-8 Scanner SDK Building up perfect quality EAN-8 barcode scanning in Java Download Trial Purchase Now

Java EAN-8 Scanning and Decoding

back to home  >  Java Barcode Scanner SDK  >  How to Read Barcodes in Java  >  Java EAN-8 Barcode Reading Guide

Java Barcode Decoder SDK is a high performance 1D and 2D barcodes recognition component library for various Java applications, including Swing, Applet, Java Bean, and J2SE. This barcoding software supports reading and scanning 1D EAN-8 bar codes from multiple image sources, such as BMP, GIF, JPEG, PNG, TIFF, Java AWT image object and so on. All mature EAN-8 recognition features are compiled in a single jar file, called pqScan.BarcodeReader.jar.

Java Barcode Scanner SDK for EAN-8 is completely built in Java SDK 1.7 and provides six robust APIs for fast bar code reading from image file with accuracy guarantee. Users can easily integrate EAN-8 decoding features in your Java application. Please see Java barcoding SDK integration details below.

Java EAN-8 Barcode Scanner Installation

You may firstly download free software trial package online and unzip it. In the package, you may locate Java Barcode Reader Component for EAN-8 (pqScan.BarcodeReader.jar) based on your platform. Then, software installation would be completed within two steps.

  • Copy Java Barcode Reader SDK jar file to your project library folder.
  • Add the jar file to your Java classpath.

Java APIs for EAN-8 Scanning

After integrating Java EAN-8 Barcode Reader into your application, you can now choose a suitable API according to recognition requirement. Then, what API should be used? Our Java SDK includes two types of APIs for linear barcode EAN-8 decoding. One is for decoding all barcode symbols on image source. And the other is applied to decoding a single barcode type. That's to say, you can set to get EAN-8 bar code data information only.

// Read and scan all barcode symbols from a local image file in Java programming.
public static BarcodeResult[] Scan(String filename);
// Read and decode all barcode symbols from BufferedImage object in Java programming.
public static BarcodeResult[] Scan(BufferedImage image);
// Read and recognize EAN8 from InputStream object in Java programming.
public static BarcodeResult[] Scan(InputStream imageStream);
// Set EAN-8 as target barcode and read it from a local image file in Java programming.
public static BarcodeResult[] Scan(String filename, BarCodeType barType);
// Set EAN8 as target barcode and scan it from BufferedImage object in Java programming.
public static BarcodeResult[] Scan(BufferedImage image, BarCodeType barType);
// Set EAN8 as target barcode and docode it from InputStream object in Java programming.
public static BarcodeResult[] Scan(InputStream imageStream, BarCodeType barType);

Java Class Code for Recognizing EAN-8

Here we will introduce you how to detect and read EAN8 barcode in Java class. Please see free code below. It's really very simple and easy.

import com.pqscan.barcodereader.BarcodeResult;
import com.pqscan.barcodereader.BarcodeScanner;
import com.pqscan.barcodereader.BarCodeType;

public class ReadEAN8Demo
{
    public static void main(String[] args)
    {
        try
        {
            // Detect and get EAN-8 data infromation from a Jpeg image.
            BarcodeResult[] results = BarcodeScanner.Scan("C:/sample.jpg", BarCodeType.EAN8);

            for(int i = 0; i < results.length; i++)
            {
                // Display all decoded barcode data informaton.
                System.out.println(results[i].getData() + "--" + results[i].getBarType());
            }
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
    }
}
pqScan SDK
Java Barcode Reader SDK
Online Guide
Read and Decode Barcode in Java
Barcode Type
Java: Read QR Code on Image Java: Read Data Matrix on Image Java: Read PDF-417 on Image Java: Read Aztec Code on Image Java: Read EAN-13 on Image Java: Read EAN-8 on Image Java: Read UPC-A on Image Java: Read UPC-E on Image Java: Read Code 128 on Image Java: Read Code 39 on Image Java: Read Code 93 on Image Java: Read Codabar on Image Java: Read ITF-14 on Image View All Barcodes >>
I was keeping up searching until used your Java barcode reader sdk. By far, it is the best among all of my tests. Support has always been fast and first rate. Unre Seymore