Free Support Forum - aspose.com

Speed vs Accuracy

I am using the latest Aspose.Barcode 3.6.1

When checking for a barcode within an A4 black and white 200dpi image, it seems to be taking around 1 second to find it. This is far too long for our purposes and much much slower than the pre v3 assemblies used to be.

I am already telling it specifically what format of barcode to look for (Code39) and what orientation to check (left to right).

I see there are some other ‘Recognition Hints’ options, but the documentation seems to be a little vague on whether each of the options improved speed or accuracy.

So if I wanted to increase the speed of recognition, which options should I be setting?

If I wanted to improve the accuracy, which options should I be setting?

What are the default options if no Hints are set?


In VB.Net 1.1, how can I set multiple hints?

Thanks for your help with this.

Hi,


Thank you for inquiry.

Specifying the barcode symbology can surely increase the performance.

Could you please use the ScanStrength hints and check with different options? Please refer to http://www.aspose.com/documentation/.net-components/aspose.barcode-for-.net/controlling-the-scan-strength-during-the-barcode-recognition-process.html for detail and examples.

For setting other hints related to speed and accuracy, please check http://www.aspose.com/documentation/.net-components/aspose.barcode-for-.net/better-and-faster-image-processing-for-barcode-recognition.html.

Multiple hints can be set using the “|” operator as follows:
reader.SetHints(RecognitionHints.ThresholdHints.AutoCalculateByImage | RecognitionHints.ScanStrengthHints.Weak);