Dear support team,
When reading the barcode (type: Code128) from the attached .tif file (within the zip file) I get wrong and strange results (“UERG0(0F’4F7&”), but it should be “UERG010154276”. When splitting the page image in smaller regions, reading the barcode works. Which options I have to set to get the right barcode result reading the whole page?
KSS-730EX-BH_NAVBelege_20201104_15523774.zip (802.3 KB)
The code part I use is (I
// fileName is he path to the physical .TIF file (within the attached zip file)
using (Stream oStreamRead = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read, 4096))
{
Image img = Image.FromStream(stream);
using (Bitmap fullBitmap = new Bitmap(img))
{
// fullBitmap.Save(Path.Combine(Path.GetTempPath(), tmpFile)); // TODO Robert: kann in der Endausbaustufe wieder entfernt werden
using (BarCodeReader reader = new BarCodeReader(fullBitmap, GetDecodeTypes(settings)))
{
while (reader.Read())
{
bc = new AsposeBarcode(settings, reader, page);
// result is: UERG0(0F’4F7& and not UERG010154276
}
}
}
}
Kind regards,
Robert