Hi,
I'm having issues with the latest version of Aspose.Barcode library. Am trying to recognize barcodes in TIFF images, but it always does not recognize any of them. I tested the same images on eg. http://zxing.org/w/decode.jspx and my mobile phone and these have been recognized properly.
A piece of VB.NET code:
rd = New Aspose.BarCodeRecognition.BarCodeReader(TBitmap, BarCodeReadType.QR) 'TBitmap is an instance of System.Drawing.Image
rd.OrientationHints = RecognitionHints.ImageBinarization.MedianSmoothing Or RecognitionHints.ImageBinarization.Grayscale
' also tried to set rd.CustomizedScanStrength to various values 128, 256 etc. but with no success
rd.Read() ' returns false
Note that the same files are properly recognized when using 3.6.1 version of the Aspose.Barcode library! A piece of VB.NET code we used with this version:
'TBitmap is an instance of System.Drawing.Image
rd = New Aspose.BarCodeRecognition.BarCodeReader(TBitmap, BarCodeReadType.QR)
rd.SetHints(RecognitionHints.ImageBinarizationHints.MedianSmoothing Or
RecognitionHints.ImageBinarizationHints.Grayscale Or
RecognitionHints.ScanStrengthHints.Strong)
rd.Read() ' returns true and rd.GetCodeText returns expected value
SetHints is obsolete in the latest version but the documentation retrieved from http://www.aspose.com/community/files/51/.net-components/aspose.barcode-for-.net/category1280.aspx
have likely not been updated for a long time. So am not sure if my new code is appropriate.
I also tested the same on 4.8.0, 5.0.0 and 5.4.0 with no success. We are having now a then occurring crashes on 3.6.1 so that's the reason why we decided to upgrade to the latest...
Attaching the images - TIFF and JPEG version, all of them are possible to recognize with the 3.6.1 version using the code above.
Jiri Matejka