Java UPC-A Reader & Scanner

Scanning & Reading UPC-A Barcodes in Java Class


  • Easy to integrate UPC-A barcode reading and scanning feature in your Java applications
  • Complete developed in Java SDK 1.4.2. No registration key. No activation code.
  • Scanning UPC-A barcodes from multiple image formats, like BMP, GIF, JPEG, PNG, TIFF formats
  • Reading barcode UPC-A from multi-page TIFF documents
  • Reliable & Mature Java Barcode UPC-A Reader & Scanner library from 2004


How to scan, read UPC (UPC-A, UPC-E) barcodes from image using Java?

  1. Download Java UPC Barcode Reader Library
  2. Install Java UPC-A jar SDK to read UPC-A, UPC-E barcode from images in Java web and desktop applications.
  3. Step by Step Tutorial










 

Java Barcode UPC-A Scanner Introduction

Top
Scanning and reading barcode UPC-A from image file is a key feature in OnBarcode Barcode Reader for Java library SDK. Java Barcode Reader is completely developed in Java SDK 1.4.2, and you can easy integrate the barcode reading feature in your Java project without any registration key, activation code.

Install UPC Barcode Reader Java library

  • Add OnBarcode.BarcodeReader.jar to your Java project reference.


 

Reading & Scanning UPC-A Barcodes in Java class

Top
Using OnBarcode Java Barcode Reader library, you can easily scan and read UPC-A barcodes from an image file in Java application.
  • Use method BarcodeScanner.Scan(), provide image file path and barcode format BarcodeType.UPCA to quickly read all UPC-A barcodes from the image file in Java application.
String[] datas = BarcodeScanner.Scan(
		"upc-a-sample-image.png", BarcodeType.UPCA); 



You can also use method BarcodeScanner.ScanInDetails() to get more information about scanned UPC-A barcodes, including UPC-A barcode pixel position in the image, barcode rotation angle,

BarcodeDetail[] datas = BarcodeScanner.ScanInDetails(
		"upc-a-sample-image.png", BarcodeType.UPCA); 


Scan UPC-A barcodes from RenderedImage object in Java memory

You can also directly scan UPC-A barcode data from image object (java.awt.image.RenderedImage) in Java memory using Java Barcode Reader library.

java.awt.image.RenderedImage renderedImage = ImageIO.read(
		new File("upc-a-sample-image.png"));
String[] datas = BarcodeScanner.Scan(renderedImage, BarcodeType.UPCA); 


Read UPC-E in Java



Use barcode type BarcodeType.UPCE to scan UPC-E barcodes from image file or image object in Java application.

String[] datas = BarcodeScanner.Scan(
		"upc-e-sample-image.png", BarcodeType.UPCE); 


Read UPC-A, UPC-E with 2- or 5- digits add-on

UPC-A, UPC-E may contain two- or five- digits add-on symbol. The sample image below is a UPC-A barcode with 2-digit add-on symbol.



When the Java Barcode Scanner SDK read the UPC (UPC-A and UPC-E) barcodes with add-on data, the barcode library will append the add-on digits after the UPC barcode data.

For the UPC-A image above, the barcode reader library will return data as 12345678912812.




How to use UPC barcode check digit to verify the scanned UPC-A data in Java?

Top
UPC-A and UPC-E include one check sum digit in the last position of the barcode. It will be generated during encoding automatically by the UPC barcode generator software or printers. The Java Barcode Reader library will use it to make sure the scanned UPC-A and UPC-E barcode is intact and untampered (the barcode library will directly return null if verification fails).












Common Asked Questions

What is a UPC-A barcode?

UPC-A barcode usually encodes a GTIN-12 code, which is a 12 digits Global Trade Item Number. The 12 digits Global Trade Item Number includes 11 digits of data message, and one digit of check digit. Using Java UPC-A Barcode Reader Library, you can quickly enable UPC-A barcode reading and scanning feature in your Java applications.

What is the difference between EAN-13 and UPC-A?

UPC-A Format barcodes have traditionally been used in the North America (USA and Canada), whereas EAN-13 format barcodes have been used throughout the rest of the world. Java Barcode Reader SDK supports both UPC-A and EAN-13 barcode images scanning and reading in Java class.

What is the difference between UPC-A and UPC-E?

UPC-A is a 12-digit barcode, and UPC-E is a compressed UPC-A with 6 digits code. Using Java UPC Barcode Reader and Scanner library, you can enable UPC-A and UPC-E reading and recognition functions with few lines of Java codes in JSP, Servlet, J2EE applications.

How to check if an UPC code is correct?

When a barcode device or barcode scanner software scan and read the a UPC barcode data, it will use the last checksum digit to verify the UPC-A data. OnBarcode Java Barcode Reader library will automatically apply UPC-A checksum calculation rules to verify the scanned UPC-A data and the last checksum digit.




































Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.