Generate or read GS1QR barcodes and speed up barcode detection by specifying manual hints and multiple recognition areas in .NET applications

Share on FacebookTweet about this on TwitterShare on LinkedIn

We are pleased to announce the release of Aspose.Barcode for .NET 7.5.0. This release supports encoding and decoding GS1QR barcodes, and specifying manual hints and multiple recognition areas to speed up the recognition process.

Speed up barcode recognition process using manual hints

Aspose.Barcode for .NET allows you to specify manual hints and speed up recognition process. BarCodeReader.ManualHints property can be set to appropriate ManualHint enumeration value e.g.

Stopwatch watch = new Stopwatch();
string filename = @"Barcode.jpg";
using (BarCodeReader reader = new BarCodeReader(filename, BarCodeReadType.DataMatrix))
	reader.RecognitionMode = RecognitionMode.ManualHints;
	reader.ManualHints = ManualHint.MedianSmoothing;

	while (reader.Read())
		Console.WriteLine(reader.GetReadType() + ": " + reader.GetCodeText());
	Console.WriteLine("Time: " + watch.ElapsedMilliseconds + "ms.");

Read barcodes from multiple regions

Aspose.Barcode for .NET allows you to read barcodes from certain regions of the images. A new constructor of BarCodeReader class has been introduced with accepts a list of rectangles to read barcodes from those rectangular areas only e.g.

Bitmap bitmap = new Bitmap("Three_Barcodes.png");

Rectangle[] areas = new Rectangle[3];
areas[0] = new Rectangle (50, 50, 300, 300);
areas[1] = new Rectangle (400, 40, 350, 350);
areas[2] = new Rectangle (40, 500, 700, 150);

using (BarCodeReader reader = new BarCodeReader(bitmap, areas, BarCodeReadType.AllSupportedTypes))
	while (reader.Read())
		Console.WriteLine(reader.GetReadType() + ": " + reader.GetCodeText());


Following is a list of improvements included in this release.

  • Support encoding GS1QR code
  • Remove unwanted white space from the bottom of barcode image
  • Reorganize the logic of recognition in manual hint mode to speed up the detection
  • Improve encoding GS1DataMatrix
  • Improve encoding GS1Code128
  • Improve reading Aztec code from the JPG images
  • Improve barcode reading
  • Implement a BarCodeReader constructor that accepts a list of rectangles

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

Aspose.BarCode for .NET Resources

The resources, you may need to accomplish your tasks: