micjahn/ZXing.Net

Aztec fails to decode

JKamsker opened this issue · 0 comments

The aztec decoder fails.
It appearantly finds the "bullseye" but it seems like the ReedSolomonDecoder isnt able to decode the data correctly. It fails at var errorLocations = findErrorLocations(sigma); which returns null

Sample Code:

var imageLocation = "C:\\Path\\To\\Image.png";
var image = Image.Load<Rgba32>(imageLocation);

var luminanceSource = new ImageSharpLuminanceSource<Rgba32>(image);
var binarizer = new HybridBinarizer(luminanceSource);
var binaryBitmap = new BinaryBitmap(binarizer);

var reader = new AztecReader();
var result = reader.decode(binaryBitmap);

Expected Result

The result should be non-null

Actual Result

The result is null

Additional Information

Images:
grafik
signal-2023-06-30-114422

Aspose is able to read the information.
https://products.aspose.app/barcode/de/recognize/aztec#/recognized

It is trying to encode the binary data as UTF-8 string but it seems to be correct otherwise.