The attached jpg has qrcode 1101605566, but the code below is giving me a very different code: +PSW2DHAYV1UC23PS6VXJ396
Is this a problem in my code or in the Aspose library?
new Aspose.BarCode.License().SetLicense("Aspose.BarCode.lic");
var reader = new BarCodeReader("barcode.jpg", BarCodeReadType.QR);
while (reader.Read())
{
Console.WriteLine("Barcode: " + reader.GetCodeText());
}
reader.Close();
Hi Maikel,
Thank you for contacting support. We have tested your sample barcode picture against the latest build of Aspose.BarCode for .NET 7.0.0 and managed to replicate the problem of incorrect recognition. We have logged this issue under ticket id BARCODENET-34197 in our issue tracking system. Your post has also been linked to this issue. We’ll keep you informed regarding any available updates. We’re sorry for the inconvenience caused.
As a workaround with orientation degree 90, Aspose.BarCode APIs reads a correct QR code. Please refer to the following solution:
[.NET, C#]
// load barcode picture
BarCodeReader read = new BarCodeReader(@“C:\temp\barcode.jpg”, BarCodeReadType.QR);
// set orientation degree as 90
read.OrientationHints = RecognitionHints.Orientation.Rotate90;
// scan barcode picture
while (read.Read())
{
Console.WriteLine("Code: " + read.GetCodeText() + " Type: " + read.GetReadType());
}
read.Close();
Result: Code: 1101605566 Type: QR
We hope, this helps. Please feel free to reply us in case of any confusion or questions.
Where can I view this ticket and its state?
Hi Maikel,
Thank you for the inquiry. Please note, you will get a notification email once it is resolved and its release version is available for public use. Meanwhile, you can ask about the current status in this forum thread. Its current status is open and it is pending for the analysis. We have intimated the concern product team member to take a look at your issue shortly. We’ll let you know immediately once any update is available.
Hi Maikel,
Thank you for asking about the resolution. The linked issue id (BARCODENET-34197) has now been marked as resolved. If there is no issue in the QA phase, then this fix will be included in the next version of Aspose.BarCode for .NET 7.2.0. We’ll inform you via this forum thread as soon as the new release is published.
The issues you have found earlier (filed as BARCODENET-34197) have been fixed in Aspose.BarCode for .NET 7.2.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.