Why Data matrix some work some do not work

Hi,
I am testing a few Data Matrix barcode online. Some work d some don’t. I am not sure why some do not work?

Second, I install NuGet Aspose.BarCode and test all images and none of them work.

Here is the simple code for scan those barcode.
private void button1_Click(object sender, EventArgs e)
{
string path = textBox1.Text; // full file path include file name
using (BarCodeReader read = new BarCodeReader($“{path}”, DecodeType.DataMatrix,
DecodeType.GS1DataMatrix,DecodeType.DotCode,
DecodeType.GS1DotCode))
{
read.QualitySettings.BarcodeQuality = BarcodeQualityMode.High;
read.ReadBarCodes();
int barcodesCount = read.FoundCount;
if (barcodesCount > 0)
{
txResults.Text = $“BarCodes count:{read.FoundCount} {Environment.NewLine}”;
}
else
{
txResults.Text = “No barcode found”;
}
}
}
242G3005-03-13 - NG.png (19.3 KB)

2473120-02-02 - OK.png (18.9 KB)

This topic has been moved to the related forum: Why Data matrix some work some do not work - Free Support Forum - aspose.com