Help with problem Tif?
Posted: Fri Oct 16, 2009 7:04 pm
I have a customer that is generating poor quality tif. The files show up as 1 bit BW, but have an error diffusion type dot pattern. What settings will give the most robust reading.
We place 4 barcodes with the same text on the page that is scanned.
Here is a code fragment showing the settings I am using.
-------------------
Dim aReaderSettings As New ReaderSettings
aReaderSettings.ScanBarcodeTypes = BarcodeType.Code39
aReaderSettings.RemovePeas = True
aReaderSettings.ThresholdMode = ThresholdMode.Manual
aReaderSettings.MaxBarcodes = 4
aReaderSettings.Threshold = 750 ' docs say 500 is default
aReaderSettings.ScanRectangle = New System.Drawing.Rectangle(0, 0, 0, 0)
aReaderSettings.ScanDirection = (ScanDirection.LeftToRight Or ScanDirection.TopToBottom Or ScanDirection.BottomToTop Or ScanDirection.RightToLeft)
aReaderSettings.MinConfidence = 0 ' 0 to 99
aReaderSettings.ThresholdIterations = 25
aBarcodeReader.Settings = aReaderSettings
barcodeResults = aBarcodeReader.ReadBarcodes(aSystemImage)
I take the highest confidence barcode that is returned. I can supply a problem file from this customer if it will help.
thanks.
Craig
We place 4 barcodes with the same text on the page that is scanned.
Here is a code fragment showing the settings I am using.
-------------------
Dim aReaderSettings As New ReaderSettings
aReaderSettings.ScanBarcodeTypes = BarcodeType.Code39
aReaderSettings.RemovePeas = True
aReaderSettings.ThresholdMode = ThresholdMode.Manual
aReaderSettings.MaxBarcodes = 4
aReaderSettings.Threshold = 750 ' docs say 500 is default
aReaderSettings.ScanRectangle = New System.Drawing.Rectangle(0, 0, 0, 0)
aReaderSettings.ScanDirection = (ScanDirection.LeftToRight Or ScanDirection.TopToBottom Or ScanDirection.BottomToTop Or ScanDirection.RightToLeft)
aReaderSettings.MinConfidence = 0 ' 0 to 99
aReaderSettings.ThresholdIterations = 25
aBarcodeReader.Settings = aReaderSettings
barcodeResults = aBarcodeReader.ReadBarcodes(aSystemImage)
I take the highest confidence barcode that is returned. I can supply a problem file from this customer if it will help.
thanks.
Craig