Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aztec fails to decode #507

Open
JKamsker opened this issue Jun 30, 2023 · 0 comments
Open

Aztec fails to decode #507

JKamsker opened this issue Jun 30, 2023 · 0 comments

Comments

@JKamsker
Copy link

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.

@JKamsker JKamsker changed the title AzTec fails to decode Aztec fails to decode Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant