having a problem decoding a barcode.
I have tried it with my commercial scanners, i-nigma and a 2d reader from codeproject and they all work
Code is as follows it try's to read but never finds a barcode.
Is it that aspose barcode does not support this type of barcode
these are 2d matrix codes on the bottom of thermo scientific tubes.
I have attached the image files
the first is actual image
the second is the image colors inverted
any help would be appreciated.
private void button2_Click(object sender, EventArgs e)
{
Aspose.BarCodeRecognition.BarCodeReader reader = new Aspose.BarCodeRecognition.BarCodeReader(imagepath, Aspose.BarCodeRecognition.BarCodeReadType.AllSupportedTypes);
try
{
while (reader.Read())
{
//never gets to here
// get the region information
Aspose.BarCodeRecognition.BarCodeRegion region = reader.GetRegion();
if (region != null)
{
// display x and y coordinates of barcode detected
System.Drawing.Point[] point = region.Points;
textBox1.Text = textBox1.Text + "Top left coordinates: X = " + point[0].X + ", Y = " + point[0].Y + "\r\n";
textBox1.Text = textBox1.Text + "Bottom left coordinates: X = " + point[1].X + ", Y = " + point[1].Y + "\r\n";
textBox1.Text = textBox1.Text + "Bottom right coordinates: X = " + point[2].X + ", Y = " + point[2].Y + "\r\n";
textBox1.Text = textBox1.Text + "Top right coordinates: X = " + point[3].X + ", Y = " + point[3].Y + "\r\n";
textBox1.Text = textBox1.Text + "Codetext: " + reader.GetCodeText() + "\r\n";
}
}
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
// close reader
reader.Close();
}