Quantcast
Channel: Aspose.BarCode Product Family
Viewing all articles
Browse latest Browse all 333

DataMatrix BarCode Readable by 3.6.1.0 is not readable by 6.8

$
0
0
Hello Support, I'm struggling to get the correct settings in BarCodeReader so it will recognize the datamatrix barcode in the attached file.  With the 3.6.1.0 dll of Aspose.BarCodeRecognition all I had to do was new BarCodeReader(stream, BarCodeReadType.DataMatrix) and it just worked.

That doesn't work with 6.8 (and 6.6) so I'm guessing there are some new options I have to set. I have tried all of these.  

// need to add these guys because the current version of Aspose is
// having problems with DataMatrix reads
var reader1 = new BarCodeReader(stream, BarCodeReadType.DataMatrix)
{
ImageBinarizationHints = RecognitionHints.ImageBinarization.MedianSmoothing,
OrientationHints = RecognitionHints.Orientation.NoRotate
};

var reader2 = new BarCodeReader(stream, BarCodeReadType.DataMatrix)
{
ImageBinarizationHints = RecognitionHints.ImageBinarization.MedianSmoothing,
OrientationHints = RecognitionHints.Orientation.Rotate90
};

var reader3 = new BarCodeReader(stream, BarCodeReadType.DataMatrix)
{
ImageBinarizationHints = RecognitionHints.ImageBinarization.MedianSmoothing,
OrientationHints = RecognitionHints.Orientation.Rotate180
};

var reader4 = new BarCodeReader(stream, BarCodeReadType.DataMatrix)
{
ImageBinarizationHints = RecognitionHints.ImageBinarization.MedianSmoothing,
OrientationHints = RecognitionHints.Orientation.Rotate270
};

Can you help let me know what I am missing

Viewing all articles
Browse latest Browse all 333