Generate or read Code32 and Datalogic2of5 barcodes and read MICR barcodes in Java

Aspose.BarCode for Java logoWe are pleased to announce the release of Aspose.BarCode for Java 7.8.0. This release supports generating Code32 and Datalogic2of5 barcodes. You can also read Code32, Datalogic and MICR barcodes. A new manual hint to skip rotated barcodes when reading barcode images has also been added to this release.

Use manual hints to skip rotated barcodes

Aspose.Barcode for Java allows you to turns off the rotation algorithms and increases the recognition speed. BarCodeReader.setManualHints can be set to ManualHint.SkipRotatedBarcodes for this purpose e.g.


long s = System.currentTimeMillis();
String filename = folder + "/Datamatrix12.jpg";

BarCodeReader reader = new BarCodeReader(filename, BarCodeReadType.GS1DataMatrix);
System.out.println("Skip rotated barcodes");
reader.setRecognitionMode(RecognitionMode.ManualHints);
reader.setManualHints(ManualHint.SkipRotatedBarcodes);

while (reader.read())
{
   System.out.println(reader.getReadType() + ": " + reader.getCodeText() + " QA:" + reader.getRecognitionQuality());
}
long res1 = System.currentTimeMillis() - s;
System.out.println(res1);
System.out.println();

s = System.currentTimeMillis();
reader = new BarCodeReader(filename, BarCodeReadType.GS1DataMatrix);
System.out.println("Not skip rotated barcodes");


while (reader.read())
{
    System.out.println(reader.getReadType() + ": " + reader.getCodeText() + " QA:" + reader.getRecognitionQuality());
}
long res2 = System.currentTimeMillis() - s;
System.out.println(res2);

Note: It is available for Datamatrix and the linear barcodes only.

Enhancements

Following is a list of improvements included in this release.

  • PDF417 barcode  recognition has been improved
  • Path IV barcode recognition has been improved
  • DataMatrix barcode recognition has been improved
  • More than 64 barcode types are supported
  • Aztec barcode recognition has been improved

To view a complete list of new features and fixes and to download the latest release, please visit Aspose.Barcode for Java 7.8.0 page in downloads section.

Aspose.BarCode for Java Resources

The resources, you may need to accomplish your tasks: